summaryrefslogtreecommitdiffstats
path: root/lib/zebra.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-03-14 13:43:17 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-03-14 13:43:17 +0100
commitc9a164dfb5ed5b96a77cd09aad76090b435c11c1 (patch)
treeb516c66c12dca47467db796409951ca970c29e39 /lib/zebra.h
parentMerge pull request #1880 from pguibert6WIND/enforce_vrf_netns_enable (diff)
downloadfrr-c9a164dfb5ed5b96a77cd09aad76090b435c11c1.tar.xz
frr-c9a164dfb5ed5b96a77cd09aad76090b435c11c1.zip
lib: Fixup strlcat and strlcpy to be a bit more descriptive
When I use these functions and am programming on linux I always have to pull up a man page for these two functions since they exist in *BSD land only. Modify the name of the size variable to destsize on pass in to give me the small hint I need to know what to do. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/zebra.h')
-rw-r--r--lib/zebra.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index 262ad2e43..923f6f77c 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -232,10 +232,12 @@ typedef unsigned char u_int8_t;
#include "zassert.h"
#ifndef HAVE_STRLCAT
-size_t strlcat(char *__restrict dest, const char *__restrict src, size_t size);
+size_t strlcat(char *__restrict dest,
+ const char *__restrict src, size_t destsize);
#endif
#ifndef HAVE_STRLCPY
-size_t strlcpy(char *__restrict dest, const char *__restrict src, size_t size);
+size_t strlcpy(char *__restrict dest,
+ const char *__restrict src, size_t destsize);
#endif
#ifdef HAVE_BROKEN_CMSG_FIRSTHDR