Silences -Wdeprecated-non-prototype warnings emitted by clang 15.

Index: base64.c
===================================================================
RCS file: /cvs/src/lib/libkeynote/base64.c,v
retrieving revision 1.11
diff -u -p -r1.11 base64.c
--- base64.c    29 Jun 2004 11:35:56 -0000      1.11
+++ base64.c    4 Feb 2023 20:37:56 -0000
@@ -34,11 +34,8 @@ int __b64_ntop(unsigned char const *, si
 int __b64_pton(char const *, unsigned char *, size_t);
 
 int
-kn_encode_base64(src, srclength, target, targsize)
-unsigned char const *src;
-unsigned int srclength;
-char *target;
-unsigned int targsize;
+kn_encode_base64(unsigned char const *src, unsigned int srclength, char 
*target,
+    unsigned int targsize)
 {
     int i;
 
@@ -49,10 +46,7 @@ unsigned int targsize;
 }
 
 int
-kn_decode_base64(src, target, targsize)
-char const *src;
-unsigned char *target;
-unsigned int targsize;
+kn_decode_base64(char const *src, unsigned char *target, unsigned int targsize)
 {
     int i;
 

Reply via email to