summaryrefslogtreecommitdiff
path: root/usr.bin/sdpquery
diff options
context:
space:
mode:
authorkamil <kamil@NetBSD.org>2019-10-24 18:17:14 +0000
committerkamil <kamil@NetBSD.org>2019-10-24 18:17:14 +0000
commit822d8d667a3ee74d7b893e2e951f6324c94ace3c (patch)
tree0f233e6faeee1e540dd4bb978ce1d3fa9a97596d /usr.bin/sdpquery
parent32e755b7de2eac347eb3a63d8ae359b67754fa8f (diff)
Switch the iconv(3) prototype to the POSIX conformant variation
Remove const from the 2nd argument. const char ** and char ** are incompatible types and it was a cost to keep the technically incompatible form for a more purist variation. NetBSD was almost the last alive OS to still keep the const argument (known leftovers: Minix and Illumos). Keep the const form for the internal purposes inside citrus and rump. Address the build breakage fallout in the same change. There are no ABI changes. Change accepted by core@.
Diffstat (limited to 'usr.bin/sdpquery')
-rw-r--r--usr.bin/sdpquery/print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/sdpquery/print.c b/usr.bin/sdpquery/print.c
index 0d90d6b4538..3f21f5bd5ae 100644
--- a/usr.bin/sdpquery/print.c
+++ b/usr.bin/sdpquery/print.c
@@ -1,4 +1,4 @@
-/* $NetBSD: print.c,v 1.22 2015/12/11 21:05:18 plunky Exp $ */
+/* $NetBSD: print.c,v 1.23 2019/10/24 18:18:00 kamil Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: print.c,v 1.22 2015/12/11 21:05:18 plunky Exp $");
+__RCSID("$NetBSD: print.c,v 1.23 2019/10/24 18:18:00 kamil Exp $");
#include <ctype.h>
#include <iconv.h>
@@ -920,7 +920,7 @@ print_codeset_string(const char *src, size_t srclen, const char *codeset)
return;
}
- (void)iconv(ih, &src, &srclen, &dst, &dstlen);
+ (void)iconv(ih, __UNCONST(&src), &srclen, &dst, &dstlen);
iconv_close(ih);