summaryrefslogtreecommitdiffstats
path: root/lib/libstand/stand.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-07-20 03:55:06 +0000
committerpeter <peter@FreeBSD.org>2002-07-20 03:55:06 +0000
commit26b02a90b6ef3ce1bc46f7fcdc11043c4b246ffc (patch)
tree67152f9dc1a938b5251d2af06c2a3a9dd8fb9300 /lib/libstand/stand.h
parent5c8d7ce181cd68ce671789be0c85e4e76697ceaa (diff)
downloadFreeBSD-src-26b02a90b6ef3ce1bc46f7fcdc11043c4b246ffc.zip
FreeBSD-src-26b02a90b6ef3ce1bc46f7fcdc11043c4b246ffc.tar.gz
Add __printflike() to printf() and sprintf() prototypes. -ffreestanding
turns off gcc's builtin attributes for these functions and as a result -Wformat does no checking. (argh)
Diffstat (limited to 'lib/libstand/stand.h')
-rw-r--r--lib/libstand/stand.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libstand/stand.h b/lib/libstand/stand.h
index 470d60b..f3e0121 100644
--- a/lib/libstand/stand.h
+++ b/lib/libstand/stand.h
@@ -244,9 +244,9 @@ extern void free_region(void *start, void *end);
struct disklabel;
extern char *getdisklabel(const char *, struct disklabel *);
-extern int printf(const char *fmt, ...);
+extern int printf(const char *fmt, ...) __printflike(1, 2);
extern void vprintf(const char *fmt, _BSD_VA_LIST_);
-extern int sprintf(char *buf, const char *cfmt, ...);
+extern int sprintf(char *buf, const char *cfmt, ...) __printflike(2, 3);
extern void vsprintf(char *buf, const char *cfmt, _BSD_VA_LIST_);
extern void twiddle(void);
OpenPOWER on IntegriCloud