]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove forgotten os_strncpy() implementations
authorJouni Malinen <j@w1.fi>
Sun, 10 Mar 2019 13:55:46 +0000 (15:55 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 10 Mar 2019 13:56:51 +0000 (15:56 +0200)
This was replaced with os_strlcpy() long time ago.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/utils/os_internal.c
src/utils/os_none.c

index ed6eb3c6b67704679883ecb0d5d2034900b7f492..474c8a372205f667cedcd0065825f7223472ccf3 100644 (file)
@@ -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;
index e74f206a2c5a291e5679fa581f93a7d61367e636..5e0a3ada66788792034c94869c33384f879a36e3 100644 (file)
@@ -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;