diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-11-15 13:37:14 +0900 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2016-11-15 14:23:17 +0900 |
| commit | 24f5e2fc62606c25c4b43e2dd77aea9aa721acba (patch) | |
| tree | 3aa5ce435a7fef3f8a7b568e5ac808b851664db1 /lib/str.h | |
| parent | a89b1641fd23740daf9a7331417b1373aa3d5932 (diff) | |
build: massively remove needless checks
Since we have autoconf results from a wide swath of target platforms, we
can go remove checks that have the same result on all systems.
This also removes several "fallback" implementations of functions that,
at some point in the history, weren't available on all target platforms.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/str.h')
| -rw-r--r-- | lib/str.h | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -5,14 +5,6 @@ #ifndef _ZEBRA_STR_H #define _ZEBRA_STR_H -#ifndef HAVE_SNPRINTF -extern int snprintf(char *, size_t, const char *, ...); -#endif - -#ifndef HAVE_VSNPRINTF -#define vsnprintf(buf, size, format, args) vsprintf(buf, format, args) -#endif - #ifndef HAVE_STRLCPY extern size_t strlcpy(char *, const char *, size_t); #endif @@ -21,13 +13,5 @@ extern size_t strlcpy(char *, const char *, size_t); extern size_t strlcat(char *, const char *, size_t); #endif -#ifndef HAVE_STRNLEN -extern size_t strnlen(const char *s, size_t maxlen); -#endif - -#ifndef HAVE_STRNDUP -extern char * strndup (const char *, size_t); -#endif - #endif /* _ZEBRA_STR_H */ |
