summaryrefslogtreecommitdiffstats
path: root/source/smbwrapper/smbw.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-07-04 07:36:09 +0000
committerAndrew Tridgell <tridge@samba.org>2001-07-04 07:36:09 +0000
commitc41fc06376d1a2b83690612304e85010b5e5f3cf (patch)
tree59f4f1203405c352984a30e0d4eb4d0955248e1e /source/smbwrapper/smbw.c
parentdebb471267960e56005a741817ebd227ecfc512a (diff)
downloadsamba-c41fc06376d1a2b83690612304e85010b5e5f3cf.tar.gz
samba-c41fc06376d1a2b83690612304e85010b5e5f3cf.tar.xz
samba-c41fc06376d1a2b83690612304e85010b5e5f3cf.zip
strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
Diffstat (limited to 'source/smbwrapper/smbw.c')
-rw-r--r--source/smbwrapper/smbw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbwrapper/smbw.c b/source/smbwrapper/smbw.c
index fd7f2a0253c..dd78480f17d 100644
--- a/source/smbwrapper/smbw.c
+++ b/source/smbwrapper/smbw.c
@@ -481,13 +481,13 @@ 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,'#')) &&
+ if ((p=strchr_m(server_n,'#')) &&
(strcmp(p+1,"1D")==0 || strcmp(p+1,"01")==0)) {
struct in_addr sip;
pstring s;
fstrcpy(group, server_n);
- p = strchr(group,'#');
+ p = strchr_m(group,'#');
*p = 0;
/* cache the workgroup master lookup */