summaryrefslogtreecommitdiff
path: root/src/common/strlib.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-06-24 05:11:00 +0200
committerHaru <haru@dotalux.com>2018-07-01 21:09:25 +0200
commit2e89d5b2824801ed49c62db9f6743f32593018bc (patch)
tree5659b4d335b9d4f707506c76f025eaf1d5cfb6e3 /src/common/strlib.c
parent8dd7aec896efc0220d6234bcfb190767c30dbb29 (diff)
downloadhercules-2e89d5b2824801ed49c62db9f6743f32593018bc.tar.gz
hercules-2e89d5b2824801ed49c62db9f6743f32593018bc.tar.bz2
hercules-2e89d5b2824801ed49c62db9f6743f32593018bc.tar.xz
hercules-2e89d5b2824801ed49c62db9f6743f32593018bc.zip
Fix some warnings caused by static functions defined and unused
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/strlib.c')
-rw-r--r--src/common/strlib.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/common/strlib.c b/src/common/strlib.c
index c9448177b..ddb1eb78a 100644
--- a/src/common/strlib.c
+++ b/src/common/strlib.c
@@ -1137,17 +1137,8 @@ void strlib_defaults(void)
strlib->normalize_name_ = strlib_normalize_name;
strlib->stristr_ = strlib_stristr;
-#if !(defined(WIN32) && defined(_MSC_VER)) && !defined(HAVE_STRNLEN)
strlib->strnlen_ = strlib_strnlen;
-#else
- strlib->strnlen_ = NULL;
-#endif
-
-#ifdef WIN32
strlib->strtok_r_ = strlib_strtok_r;
-#else
- strlib->strtok_r_ = NULL;
-#endif
strlib->e_mail_check_ = strlib_e_mail_check;
strlib->config_switch_ = strlib_config_switch;