X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faccess%2Fsmb.c;h=3f21b6be03afa42b1d92498166db4d5680e2d52b;hb=32b31e87d90967549e5cc8bef18d5aae7e3b98c6;hp=4072071684bb5a182814701625dcab3c23f8fe55;hpb=13ae40b0efc4f1b1ce205d9a057537047fcab3f4;p=vlc diff --git a/modules/access/smb.c b/modules/access/smb.c index 4072071684..3f21b6be03 100644 --- a/modules/access/smb.c +++ b/modules/access/smb.c @@ -30,7 +30,7 @@ # include "config.h" #endif -#include +#include #include #include @@ -112,13 +112,13 @@ struct access_sys_t #ifdef WIN32 static void Win32AddConnection( access_t *, char *, char *, char *, char * ); -#endif - +#else static void smb_auth( const char *srv, const char *shr, char *wg, int wglen, char *un, int unlen, char *pw, int pwlen ) { //wglen = unlen = pwlen = 0; } +#endif /**************************************************************************** * Open: connect to smb server and ask for file @@ -216,7 +216,6 @@ static int Open( vlc_object_t *p_this ) #ifdef USE_CTX if( !(p_smb = smbc_new_context()) ) { - msg_Err( p_access, "out of memory" ); free( psz_uri ); return VLC_ENOMEM; } @@ -445,6 +444,7 @@ static void Win32AddConnection( access_t *p_access, char *psz_path, NETRESOURCE net_resource; DWORD i_result; char *psz_parser; + VLC_UNUSED( psz_domain ); HINSTANCE hdll = LoadLibrary(_T("MPR.DLL")); if( !hdll )