summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-11-13 21:47:59 +0000
committerJeremy Allison <jra@samba.org>2002-11-13 21:47:59 +0000
commit321f78b1b9496012f551972bf9d9056a6949e495 (patch)
treeb0f6650dd48f7fff57fa7402260e1b280bfe2b53 /source3
parent098c08ccabe164492d6a91372608f5feb0de0d47 (diff)
downloadsamba-321f78b1b9496012f551972bf9d9056a6949e495.tar.gz
samba-321f78b1b9496012f551972bf9d9056a6949e495.tar.bz2
samba-321f78b1b9496012f551972bf9d9056a6949e495.zip
Fix smbwrapper from global* changes.
Jeremy. (This used to be commit fcbf865162562e359ca4be44a689506d54636e18)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbwrapper/smbsh.c2
-rw-r--r--source3/smbwrapper/smbw.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbwrapper/smbsh.c b/source3/smbwrapper/smbsh.c
index 0d705ddcfa..f9697223c4 100644
--- a/source3/smbwrapper/smbsh.c
+++ b/source3/smbwrapper/smbsh.c
@@ -36,7 +36,7 @@ static void smbsh_usage(void)
int main(int argc, char *argv[])
{
char *p, *u;
- char *libd = dyn_BINDIR;
+ const char *libd = dyn_BINDIR;
pstring line, wd;
int opt;
extern char *optarg;
diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c
index 2dd7c4ea6d..005d9af53f 100644
--- a/source3/smbwrapper/smbw.c
+++ b/source3/smbwrapper/smbw.c
@@ -27,7 +27,6 @@ static struct smbw_file *smbw_files;
static struct smbw_server *smbw_srvs;
struct bitmap *smbw_file_bmap;
-extern pstring global_myname;
fstring smbw_prefix = SMBW_PREFIX;
@@ -79,7 +78,8 @@ void smbw_init(void)
lp_load(dyn_CONFIGFILE,True,False,False);
- get_myname(global_myname);
+ if (!init_names())
+ exit(1);
if ((p=smbw_getshared("DEBUG"))) {
DEBUGLEVEL = atoi(p);
@@ -461,7 +461,7 @@ struct smbw_server *smbw_server(char *server, char *share)
return NULL;
}
- make_nmb_name(&calling, global_myname, 0x0);
+ make_nmb_name(&calling, global_myname(), 0x0);
make_nmb_name(&called , server, 0x20);
DEBUG(4,("server_n=[%s] server=[%s]\n", server_n, server));