summaryrefslogtreecommitdiff
path: root/source4/lib/replace/replace.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-08-23 11:32:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:36 -0500
commit09129c73d7b7fc97478fe642dc43f7e5ce9a2ba9 (patch)
treebd15a34b4d3f23ca5e2eb2ffd11bfd7836d43a7d /source4/lib/replace/replace.c
parent6ac7ea5027428c006ac79889ce9a2bb059450387 (diff)
downloadsamba-09129c73d7b7fc97478fe642dc43f7e5ce9a2ba9.tar.gz
samba-09129c73d7b7fc97478fe642dc43f7e5ce9a2ba9.tar.bz2
samba-09129c73d7b7fc97478fe642dc43f7e5ce9a2ba9.zip
r17750: these have moved to ldb/replace/ now
(This used to be commit ac178b52935d7629f8583092e833b74093ca70e1)
Diffstat (limited to 'source4/lib/replace/replace.c')
-rw-r--r--source4/lib/replace/replace.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/source4/lib/replace/replace.c b/source4/lib/replace/replace.c
index 989c0947c3..b74cd7f95a 100644
--- a/source4/lib/replace/replace.c
+++ b/source4/lib/replace/replace.c
@@ -387,37 +387,6 @@ duplicate a string
#endif
-#ifndef HAVE_STRTOULL
- unsigned long long int strtoull(const char *str, char **endptr, int base)
-{
-#ifdef HAVE_STRTOUQ
- return strtouq(str, endptr, base);
-#elif defined(HAVE___STRTOULL)
- return __strtoull(str, endptr, base);
-#elif SIZEOF_LONG == SIZEOF_LONG_LONG
- return (unsigned long long int) strtoul(str, endptr, base);
-#else
-# error "You need a strtoull function"
-#endif
-}
-#endif
-
-#ifndef HAVE_STRTOLL
- long long int strtoll(const char *str, char **endptr, int base)
-{
-#ifdef HAVE_STRTOQ
- return strtoq(str, endptr, base);
-#elif defined(HAVE___STRTOLL)
- return __strtoll(str, endptr, base);
-#elif SIZEOF_LONG == SIZEOF_LONG_LONG
- return (long long int) strtol(str, endptr, base);
-#else
-# error "You need a strtoll function"
-#endif
-}
-#endif
-
-
#ifndef HAVE_STRNDUP
/**
Some platforms don't have strndup.
@@ -437,19 +406,6 @@ duplicate a string
}
#endif
-#ifndef HAVE_STRNLEN
-/**
- Some platforms don't have strnlen
-**/
- size_t strnlen(const char *s, size_t n)
-{
- int i;
- for (i=0; s[i] && i<n; i++)
- /* noop */ ;
- return i;
-}
-#endif
-
#ifndef HAVE_WAITPID
int waitpid(pid_t pid,int *status,int options)
{