PERFORCE change 33478 for review
Robert Watson
rwatson at FreeBSD.org
Sat Jun 21 19:06:19 GMT 2003
http://perforce.freebsd.org/chv.cgi?CH=33478
Change 33478 by rwatson at rwatson_powerbook on 2003/06/21 12:05:29
Darwin doesn't support __printflike(); they also declare
__va_list in two different headers, so we grab the machine/ansi.h
one indirected through a define.
Affected files ...
.. //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/sys/sbuf.h#2 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/sys/sbuf.h#2 (text+ko) ====
@@ -31,7 +31,8 @@
#ifndef _SYS_SBUF_H_
#define _SYS_SBUF_H_
-#include <sys/_types.h>
+#include <sys/types.h>
+#include <machine/ansi.h>
/*
* Structure definition
@@ -62,8 +63,8 @@
int sbuf_bcpy(struct sbuf *, const char *, size_t);
int sbuf_cat(struct sbuf *, const char *);
int sbuf_cpy(struct sbuf *, const char *);
-int sbuf_printf(struct sbuf *, const char *, ...) __printflike(2, 3);
-int sbuf_vprintf(struct sbuf *, const char *, __va_list) __printflike(2, 0);
+int sbuf_printf(struct sbuf *, const char *, ...);
+int sbuf_vprintf(struct sbuf *, const char *, _BSD_VA_LIST_);
int sbuf_putc(struct sbuf *, int);
int sbuf_trim(struct sbuf *);
int sbuf_overflowed(struct sbuf *);
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list