hello,
given that the various printf's in systm.h are format-checked, it probably
makes sense to add this to sbuf_printf also. Could somebody please commit
this?
harti
Index: sbuf.h
===================================================================
RCS file: /usr/ncvs/src/sys/sys/sbuf.h,v
retrieving revision 1.6
diff -c -r1.6 sbuf.h
*** sbuf.h 2001/07/03 21:46:42 1.6
--- sbuf.h 2001/07/17 12:05:28
***************
*** 58,64 ****
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_putc(struct sbuf *s, int c);
int sbuf_overflowed(struct sbuf *s);
void sbuf_finish(struct sbuf *s);
--- 58,64 ----
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, ...) __printflike(2, 3);
int sbuf_putc(struct sbuf *s, int c);
int sbuf_overflowed(struct sbuf *s);
void sbuf_finish(struct sbuf *s);
--
harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private
[EMAIL PROTECTED], [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message