From a2bc1c28a5339141ab4e1461d5978ff57fefd25c Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 22 Dec 2013 23:42:58 +0100 Subject: stream_smb: remove dead code Yep, smb_username/password were unused since forever, even in MPlayer. Removal untested. (Does anyone even use smb://?) --- stream/stream_smb.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/stream/stream_smb.c b/stream/stream_smb.c index 72108aca67..4469978359 100644 --- a/stream/stream_smb.c +++ b/stream/stream_smb.c @@ -31,32 +31,11 @@ struct priv { int fd; }; -static char smb_password[15]; -static char smb_username[15]; - static void smb_auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen, char *username, int unmaxlen, char *password, int pwmaxlen) { - char temp[128]; - - strcpy(temp, "LAN"); - if (temp[strlen(temp) - 1] == 0x0a) - temp[strlen(temp) - 1] = 0x00; - - if (temp[0]) strncpy(workgroup, temp, wgmaxlen - 1); - - strcpy(temp, smb_username); - if (temp[strlen(temp) - 1] == 0x0a) - temp[strlen(temp) - 1] = 0x00; - - if (temp[0]) strncpy(username, temp, unmaxlen - 1); - - strcpy(temp, smb_password); - if (temp[strlen(temp) - 1] == 0x0a) - temp[strlen(temp) - 1] = 0x00; - - if (temp[0]) strncpy(password, temp, pwmaxlen - 1); + strncpy(workgroup, "LAN", wgmaxlen - 1); } static int control(stream_t *s, int cmd, void *arg) { -- cgit v1.2.3