From cd6a5866eb484c61c0a0b35ff7d33905d75384ba Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 10 Mar 2019 15:55:46 +0200 Subject: [PATCH] Remove forgotten os_strncpy() implementations This was replaced with os_strlcpy() long time ago. Signed-off-by: Jouni Malinen --- src/utils/os_internal.c | 16 ---------------- src/utils/os_none.c | 6 ------ 2 files changed, 22 deletions(-) diff --git a/src/utils/os_internal.c b/src/utils/os_internal.c index ed6eb3c6b..474c8a372 100644 --- a/src/utils/os_internal.c +++ b/src/utils/os_internal.c @@ -430,22 +430,6 @@ int os_strncmp(const char *s1, const char *s2, size_t n) } -char * os_strncpy(char *dest, const char *src, size_t n) -{ - char *d = dest; - - while (n--) { - *d = *src; - if (*src == '\0') - break; - d++; - src++; - } - - return dest; -} - - size_t os_strlcpy(char *dest, const char *src, size_t siz) { const char *s = src; diff --git a/src/utils/os_none.c b/src/utils/os_none.c index e74f206a2..5e0a3ada6 100644 --- a/src/utils/os_none.c +++ b/src/utils/os_none.c @@ -218,12 +218,6 @@ int os_strncmp(const char *s1, const char *s2, size_t n) } -char * os_strncpy(char *dest, const char *src, size_t n) -{ - return dest; -} - - size_t os_strlcpy(char *dest, const char *src, size_t size) { return 0;