summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-12-06 01:17:02 +0100
committerMichael Adam <obnox@samba.org>2011-12-06 12:20:48 +0100
commit891258cd7043fd9b4ae99324a541cffbce09e27a (patch)
tree52513006bb4e929e7127caf73fb2bf387502b5f6 /source3/utils
parent958e4f51d2857e1f84acf770ab0d9f2cee5d5d83 (diff)
downloadsamba-891258cd7043fd9b4ae99324a541cffbce09e27a.tar.gz
samba-891258cd7043fd9b4ae99324a541cffbce09e27a.tar.bz2
samba-891258cd7043fd9b4ae99324a541cffbce09e27a.zip
s3:net registry check: replace rawmemchr by functionally equivalent portable strchr
rawmemchr is glibc only - not portable. Remarked by Ira Cooper. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Dec 6 12:20:48 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_registry_check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_registry_check.c b/source3/utils/net_registry_check.c
index 98f17f506e..201dc5ebc1 100644
--- a/source3/utils/net_registry_check.c
+++ b/source3/utils/net_registry_check.c
@@ -211,7 +211,7 @@ static bool tdb_data_is_cstr(TDB_DATA d) {
if (tdb_data_is_empty(d) || (d.dptr[d.dsize-1] != '\0')) {
return false;
}
- return rawmemchr(d.dptr, '\0') == &d.dptr[d.dsize-1];
+ return strchr((char *)d.dptr, '\0') == (char *)&d.dptr[d.dsize-1];
}
static char* tdb_data_print(TALLOC_CTX *mem_ctx, TDB_DATA d)
@@ -664,7 +664,7 @@ static bool srprs_path(const char **ptr, const char* prefix, char sep,
return false;
}
*ppath = path;
- *ptr = rawmemchr(pos, '\0');
+ *ptr = strchr(pos, '\0');
return true;
}