mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 11:17:37 +01:00
Mark functions handling format strings with __printflike
This commit is contained in:
parent
151bc71d64
commit
ee26e59e72
@ -39,10 +39,14 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
extern void warnc (int code, const char *format, ...);
|
void warnc(int code, const char *format, ...)
|
||||||
extern void vwarnc (int code, const char *format, va_list ap);
|
__printflike(2, 3);
|
||||||
extern void errc (int status, int code, const char *format, ...);
|
void vwarnc(int code, const char *format, va_list ap)
|
||||||
extern void verrc (int status, int code, const char *format, va_list ap);
|
__printflike(2, 0);
|
||||||
|
void errc(int status, int code, const char *format, ...)
|
||||||
|
__printflike(3, 4);
|
||||||
|
void verrc(int status, int code, const char *format, va_list ap)
|
||||||
|
__printflike(3, 0);
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -60,7 +60,8 @@ void closefrom(int lowfd);
|
|||||||
#define initsetproctitle(c, a, e) setproctitle_init((c), (a), (e))
|
#define initsetproctitle(c, a, e) setproctitle_init((c), (a), (e))
|
||||||
|
|
||||||
void setproctitle_init(int argc, char *argv[], char *envp[]);
|
void setproctitle_init(int argc, char *argv[], char *envp[]);
|
||||||
void setproctitle(const char *fmt, ...);
|
void setproctitle(const char *fmt, ...)
|
||||||
|
__printflike(1, 2);
|
||||||
|
|
||||||
int getpeereid(int s, uid_t *euid, gid_t *egid);
|
int getpeereid(int s, uid_t *euid, gid_t *egid);
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
Loading…
Reference in New Issue
Block a user