[vlc-commits] unc: remove unused domain parameter

Steve Lhomme git at videolan.org
Mon Jul 15 09:22:30 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jul 10 07:45:10 2019 +0200| [992d05e6462a886b94f6ec087dc1538f95010db7] | committer: Steve Lhomme

unc: remove unused domain parameter

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=992d05e6462a886b94f6ec087dc1538f95010db7
---

 modules/access/unc.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/modules/access/unc.c b/modules/access/unc.c
index cddf9c25af..3903643396 100644
--- a/modules/access/unc.c
+++ b/modules/access/unc.c
@@ -52,13 +52,11 @@ typedef struct
 
 static void Win32AddConnection(stream_t *access, const char *server,
                                const char *share, const char *user,
-                               const char *pwd, const char *domain)
+                               const char *pwd)
 {
     NETRESOURCE net_resource;
     char remote_name[MAX_PATH];
 
-    VLC_UNUSED(domain);
-
     memset(&net_resource, 0, sizeof (net_resource));
     net_resource.dwType = RESOURCETYPE_DISK;
 
@@ -91,7 +89,6 @@ static void Win32AddConnection(stream_t *access, const char *server,
 /* Build an SMB URI
  * smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]] */
 static int smb_get_uri( stream_t *p_access, char **ppsz_uri,
-                        const char *psz_domain,
                         const char *psz_user, const char *psz_pwd,
                         const char *psz_server, const char *psz_share_path,
                         const char *psz_name )
@@ -101,7 +98,7 @@ static int smb_get_uri( stream_t *p_access, char **ppsz_uri,
 #define PSZ_NAME_OR_NULL psz_name ? "/" : "", psz_name ? psz_name : ""
     if( psz_user )
         Win32AddConnection( p_access, psz_server, psz_share_path,
-                            psz_user, psz_pwd, psz_domain );
+                            psz_user, psz_pwd );
     return asprintf( ppsz_uri, "//%s%s%s%s", psz_server, PSZ_SHARE_PATH_OR_NULL,
                      PSZ_NAME_OR_NULL );
 }
@@ -180,7 +177,7 @@ static int DirRead(stream_t *p_access, input_item_node_t *p_node)
                 }
 
                 char* psz_path;
-                if( smb_get_uri( p_access, &psz_path, NULL, NULL, NULL,
+                if( smb_get_uri( p_access, &psz_path, NULL, NULL,
                                  p_sys->url.psz_host, p_sys->url.psz_path,
                                  psz_name ) < 0 )
                 {
@@ -291,7 +288,7 @@ static int Open(vlc_object_t *obj)
     {
         struct stat st;
 
-        if (smb_get_uri(access, &psz_uri, credential.psz_realm,
+        if (smb_get_uri(access, &psz_uri,
                         credential.psz_username, credential.psz_password,
                         url.psz_host, psz_decoded_path, NULL ) == -1 )
         {



More information about the vlc-commits mailing list