summaryrefslogtreecommitdiff
path: root/source3/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
commit60cf45b2bc7a2a57fbda303440655cf2640cab35 (patch)
tree1f5f381e02b6c327203522d3bebaa0d250b9eca6 /source3/smbwrapper
parentc778331328ac36e26a7fd58dc592c739249d6ef4 (diff)
downloadsamba-60cf45b2bc7a2a57fbda303440655cf2640cab35.tar.gz
samba-60cf45b2bc7a2a57fbda303440655cf2640cab35.tar.bz2
samba-60cf45b2bc7a2a57fbda303440655cf2640cab35.zip
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. (This used to be commit 76448d1d82a78520953c662afee0886122ce134b)
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);
}