mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-08 11:02:24 +01:00
vis: Add prototypes for strnvis() and strnunvis() variants
Warned-by: gcc
This commit is contained in:
parent
25e88f6479
commit
50b50a4330
@ -564,12 +564,16 @@ 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);
|
||||
}
|
||||
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)
|
||||
{
|
||||
|
@ -733,12 +733,16 @@ 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);
|
||||
}
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user