aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/sbuf.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-07-18 15:58:06 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-07-18 15:58:06 +0000
commit344d118fd452e173358fd2c58c0940624fb24c33 (patch)
tree32246d3751ed86f9586078f0d3a45a440b87f4f5 /sys/sys/sbuf.h
parent97e1bac18964fab4898772668968d319f434db34 (diff)
downloadsrc-344d118fd452e173358fd2c58c0940624fb24c33.tar.gz
src-344d118fd452e173358fd2c58c0940624fb24c33.zip
Add printf format checking to sbuf_printf()
Submitted by: Harti Brandt <brandt@fokus.gmd.de
Notes
Notes: svn path=/head/; revision=79870
Diffstat (limited to 'sys/sys/sbuf.h')
-rw-r--r--sys/sys/sbuf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/sbuf.h b/sys/sys/sbuf.h
index 20f39c2d422f..b671c0c5bd1d 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);