diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-02-12 13:22:57 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-02-12 13:22:57 -0800 |
commit | 92030dd4c221e8043521ae4dc9d32d50e6ff44c4 (patch) | |
tree | c352499ec450080e1b36f76fdcb3b7113941cad2 | |
parent | 8e0e63519069bed43b3bf1ce1f11fd0cd516d3e4 (diff) | |
download | xorg-lib-libXpm-92030dd4c221e8043521ae4dc9d32d50e6ff44c4.tar.gz |
parse.c: remove unused function xstrlcpy()
parse.c:74:1: warning: unused function 'xstrlcpy' [-Wunused-function]
xstrlcpy(char *dst, const char *src, size_t dstsize)
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/parse.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/parse.c b/src/parse.c index 2bb3f0e..ab65f50 100644 --- a/src/parse.c +++ b/src/parse.c @@ -66,25 +66,6 @@ xstrlcat(char *dst, const char *src, size_t dstsize) #endif } -/** - * like strlcpy() but returns true on success and false if the string got - * truncated. - */ -static inline Bool -xstrlcpy(char *dst, const char *src, size_t dstsize) -{ -#if defined(HAS_STRLCAT) || defined(HAVE_STRLCAT) - return strlcpy(dst, src, dstsize) < dstsize; -#else - if (strlen(src) < dstsize) { - strcpy(dst, src); - return True; - } else { - return False; - } -#endif -} - LFUNC(ParsePixels, int, (xpmData *data, unsigned int width, unsigned int height, unsigned int ncolors, unsigned int cpp, XpmColor *colorTable, |