vis: Add prototypes for strnvis() and strnunvis() variants Warned-by: gcc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
diff --git a/src/unvis.c b/src/unvis.c
index 166421a..0f40a27 100644
--- a/src/unvis.c
+++ b/src/unvis.c
@@ -564,6 +564,8 @@ strunvis(char *dst, const char *src)
* NetBSD: 2012, strnunvis(char *dst, size_t dlen, const char *src);
*/
ssize_t
+strnunvis_openbsd(char *, const char *, size_t);
+ssize_t
strnunvis_openbsd(char *dst, const char *src, size_t dlen)
{
return strnunvisx(dst, dlen, src, 0);
@@ -571,6 +573,8 @@ strnunvis_openbsd(char *dst, const char *src, size_t dlen)
libbsd_symver_default(strnunvis, strnunvis_openbsd, LIBBSD_0.2);
int
+strnunvis_netbsd(char *, size_t, const char *);
+int
strnunvis_netbsd(char *dst, size_t dlen, const char *src)
{
return strnunvisx(dst, dlen, src, 0);
diff --git a/src/vis.c b/src/vis.c
index c8e5ae8..f6261bc 100644
--- a/src/vis.c
+++ b/src/vis.c
@@ -733,6 +733,8 @@ strvis(char *mbdst, const char *mbsrc, int flags)
* NetBSD: 2012, strnvis(char *dst, size_t dlen, const char *src, int flag);
*/
int
+strnvis_openbsd(char *, const char *, size_t, int);
+int
strnvis_openbsd(char *mbdst, const char *mbsrc, size_t dlen, int flags)
{
return istrsenvisxl(mbdst, &dlen, mbsrc, flags, "", NULL);
@@ -740,6 +742,8 @@ strnvis_openbsd(char *mbdst, const char *mbsrc, size_t dlen, int flags)
libbsd_symver_default(strnvis, strnvis_openbsd, LIBBSD_0.2);
int
+strnvis_netbsd(char *, size_t, const char *, int);
+int
strnvis_netbsd(char *mbdst, size_t dlen, const char *mbsrc, int flags)
{
return istrsenvisxl(mbdst, &dlen, mbsrc, flags, "", NULL);