summaryrefslogtreecommitdiff
path: root/source/smbwrapper
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-10-20 03:17:43 +0000
committerJeremy Allison <jra@samba.org>1998-10-20 03:17:43 +0000
commit76448d1d82a78520953c662afee0886122ce134b (patch)
tree61b65369c4238b1973bcc2dc73f792b2671745ee /source/smbwrapper
parentc511a619750152db03897ea682713bbc98f71c6b (diff)
downloadsamba-76448d1d82a78520953c662afee0886122ce134b.tar.gz
smbd/nttrans.c smbd/trans2.c: First fixes for NT5.0beta2. That redirector
has some *horrible* bugs ! smbwrapper/shared.c smbwrapper/smbsh.c smbwrapper/smbw.c: Fixed gcc warnings. Jeremy.
Diffstat (limited to 'source/smbwrapper')
-rw-r--r--source/smbwrapper/shared.c1
-rw-r--r--source/smbwrapper/smbsh.c1
-rw-r--r--source/smbwrapper/smbw.c6
3 files changed, 3 insertions, 5 deletions
diff --git a/source/smbwrapper/shared.c b/source/smbwrapper/shared.c
index 0e83c3704d0..69fa07dba8b 100644
--- a/source/smbwrapper/shared.c
+++ b/source/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/source/smbwrapper/smbsh.c b/source/smbwrapper/smbsh.c
index ed0ab5290f9..39623dc3eda 100644
--- a/source/smbwrapper/smbsh.c
+++ b/source/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/source/smbwrapper/smbw.c b/source/smbwrapper/smbw.c
index 45285180768..e43910c1945 100644
--- a/source/smbwrapper/smbw.c
+++ b/source/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);
}