diff options
author | phk <phk@FreeBSD.org> | 2001-07-18 15:58:06 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-07-18 15:58:06 +0000 |
commit | 7f754d6b280271ca989f16356f63ae8cdc719667 (patch) | |
tree | 32246d3751ed86f9586078f0d3a45a440b87f4f5 /sys/sys/sbuf.h | |
parent | aab47f87b883af33145a316a1154801431cb0170 (diff) | |
download | FreeBSD-src-7f754d6b280271ca989f16356f63ae8cdc719667.zip FreeBSD-src-7f754d6b280271ca989f16356f63ae8cdc719667.tar.gz |
Add printf format checking to sbuf_printf()
Submitted by: Harti Brandt <brandt@fokus.gmd.de
Diffstat (limited to 'sys/sys/sbuf.h')
-rw-r--r-- | sys/sys/sbuf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/sbuf.h b/sys/sys/sbuf.h index 20f39c2..b671c0c 100644 --- a/sys/sys/sbuf.h +++ b/sys/sys/sbuf.h @@ -58,7 +58,7 @@ int sbuf_bcat(struct sbuf *s, const char *str, size_t len); int sbuf_bcpy(struct sbuf *s, const char *str, size_t len); int sbuf_cat(struct sbuf *s, const char *str); int sbuf_cpy(struct sbuf *s, const char *str); -int sbuf_printf(struct sbuf *s, const char *fmt, ...); +int sbuf_printf(struct sbuf *s, const char *fmt, ...) __printflike(2, 3); int sbuf_putc(struct sbuf *s, int c); int sbuf_overflowed(struct sbuf *s); void sbuf_finish(struct sbuf *s); |