summaryrefslogtreecommitdiff
path: root/source3/smbwrapper
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbwrapper')
-rw-r--r--source3/smbwrapper/shared.c1
-rw-r--r--source3/smbwrapper/smbsh.c1
-rw-r--r--source3/smbwrapper/smbw.c6
3 files changed, 3 insertions, 5 deletions
diff --git a/source3/smbwrapper/shared.c b/source3/smbwrapper/shared.c
index 0e83c3704d..69fa07dba8 100644
--- a/source3/smbwrapper/shared.c
+++ b/source3/smbwrapper/shared.c
@@ -121,7 +121,6 @@ char *smbw_getshared(const char *name)
i=0;
while (i < shared_size) {
- int len;
char *n, *v;
n = &variables[i];
diff --git a/source3/smbwrapper/smbsh.c b/source3/smbwrapper/smbsh.c
index ed0ab5290f..39623dc3ed 100644
--- a/source3/smbwrapper/smbsh.c
+++ b/source3/smbwrapper/smbsh.c
@@ -38,7 +38,6 @@ int main(int argc, char *argv[])
char *p, *u;
char *libd = BINDIR;
pstring line;
- extern FILE *dbf;
int opt;
extern char *optarg;
extern int optind;
diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c
index 4528518076..e43910c194 100644
--- a/source3/smbwrapper/smbw.c
+++ b/source3/smbwrapper/smbw.c
@@ -404,7 +404,7 @@ struct smbw_server *smbw_server(char *server, char *share)
DEBUG(4,("server_n=[%s] server=[%s]\n", server_n, server));
if ((p=strchr(server_n,'#')) && strcmp(p+1,"1D")==0) {
- struct in_addr ip;
+ struct in_addr sip;
pstring s;
fstrcpy(group, server_n);
@@ -414,11 +414,11 @@ struct smbw_server *smbw_server(char *server, char *share)
/* cache the workgroup master lookup */
slprintf(s,sizeof(s)-1,"MASTER_%s", group);
if (!(server_n = smbw_getshared(s))) {
- if (!find_master_ip(group, &ip)) {
+ if (!find_master_ip(group, &sip)) {
errno = ENOENT;
return NULL;
}
- fstrcpy(group, inet_ntoa(ip));
+ fstrcpy(group, inet_ntoa(sip));
server_n = group;
smbw_setshared(s,server_n);
}