summaryrefslogtreecommitdiffstats
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-07-04 07:39:01 +0000
committerAndrew Tridgell <tridge@samba.org>2001-07-04 07:39:01 +0000
commit5a2b87d810da14d392ff44cab439773dccce43e8 (patch)
tree90c06d2f4a19cd1474ba62b27d62475b4ba2c637 /source3/include
parent527e824293ee934ca5da0ef5424efe5ab7757248 (diff)
downloadsamba-5a2b87d810da14d392ff44cab439773dccce43e8.tar.gz
samba-5a2b87d810da14d392ff44cab439773dccce43e8.tar.xz
samba-5a2b87d810da14d392ff44cab439773dccce43e8.zip
missed a couple of strchr calls
(This used to be commit 57e7df8ae58020ab653307c1fdfbadd44983e900)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/charset.h2
-rw-r--r--source3/include/includes.h5
2 files changed, 1 insertions, 6 deletions
diff --git a/source3/include/charset.h b/source3/include/charset.h
index 7c6fbe5509..117de75c00 100644
--- a/source3/include/charset.h
+++ b/source3/include/charset.h
@@ -63,7 +63,7 @@ extern void charset_initialise(void);
/* this is used to determine if a character is safe to use in
something that may be put on a command line */
-#define issafe(c) (isalnum((c&0xff)) || strchr("-._",c))
+#define issafe(c) (isalnum((c&0xff)) || strchr_m("-._",c))
#endif
/* Dynamic codepage files defines. */
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 9ed7401df3..7c1a4a8607 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -611,11 +611,6 @@ extern char *sys_errlist[];
#define strerror(i) sys_errlist[i]
#endif
-#ifndef HAVE_STRCHR
-# define strchr index
-# define strrchr rindex
-#endif
-
#ifndef HAVE_ERRNO_DECL
extern int errno;
#endif