From: Guillem Jover Date: Mon, 1 Mar 2021 23:48:02 +0000 (+0100) Subject: Add missing prototypes to functions X-Git-Tag: 0.11.4~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04a8fb2469439ef3397062b4b1792d45bc95f469;p=thirdparty%2Flibbsd.git Add missing prototypes to functions Warned-by: gcc --- diff --git a/src/explicit_bzero.c b/src/explicit_bzero.c index 52a7517..d223631 100644 --- a/src/explicit_bzero.c +++ b/src/explicit_bzero.c @@ -1,4 +1,4 @@ -/* $OpenBSD: explicit_bzero.c,v 1.3 2014/06/21 02:34:26 matthew Exp $ */ +/* $OpenBSD: explicit_bzero.c,v 1.4 2015/08/31 02:53:57 guenther Exp $ */ /* * Public domain. * Written by Matthew Dempsky. @@ -6,6 +6,9 @@ #include +__attribute__((__weak__)) void +__explicit_bzero_hook(void *, size_t); + __attribute__((__weak__)) void __explicit_bzero_hook(void *buf, size_t len) { diff --git a/src/setproctitle.c b/src/setproctitle.c index ff32aa3..d3e1087 100644 --- a/src/setproctitle.c +++ b/src/setproctitle.c @@ -222,6 +222,10 @@ setproctitle_init(int argc, char *argv[], char *envp[]) #define SPT_MAXTITLE 255 #endif +__printflike(1, 2) +void +setproctitle_impl(const char *fmt, ...); + void setproctitle_impl(const char *fmt, ...) {