diff options
author | wm4 <wm4@nowhere> | 2013-12-22 23:42:58 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-22 23:42:58 +0100 |
commit | a2bc1c28a5339141ab4e1461d5978ff57fefd25c (patch) | |
tree | 0801c3d93d949f39c4521674c3974b5fe84f6b1c | |
parent | 88fd763e18b42fbcaaa7738212cfeb1b6b37e8f3 (diff) | |
download | mpv-a2bc1c28a5339141ab4e1461d5978ff57fefd25c.tar.bz2 mpv-a2bc1c28a5339141ab4e1461d5978ff57fefd25c.tar.xz |
stream_smb: remove dead code
Yep, smb_username/password were unused since forever, even in MPlayer.
Removal untested. (Does anyone even use smb://?)
-rw-r--r-- | stream/stream_smb.c | 23 |
1 files changed, 1 insertions, 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) { |