Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2001 11:07:35 +0200 (CEST)
From:      Harti Brandt <brandt@fokus.gmd.de>
To:        <hackers@freebsd.org>
Subject:   Format checking for sbuf_printf...
Message-ID:  <20010718110432.P20739-100000@beagle.fokus.gmd.de>

next in thread | raw e-mail | index | archive | help

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
              brandt@fokus.gmd.de, harti@begemot.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010718110432.P20739-100000>