summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-11-29 20:01:04 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-11-29 20:01:04 +0000
commite1e583ba6100731e5452ca6037e237595b790d78 (patch)
tree92115e316589a16512b2b7156dd35ff3cf92069e
parent6fd0c3ed3c8f0924a6a4767a73c92c12dc498b88 (diff)
Add __attribute__ for asprintf.
-rw-r--r--include/stdio.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/stdio.h b/include/stdio.h
index a31fa0610c8..3458c67809c 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdio.h,v 1.8 1997/11/29 19:54:51 millert Exp $ */
+/* $OpenBSD: stdio.h,v 1.9 1997/11/29 20:01:03 millert Exp $ */
/* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */
/*-
@@ -282,7 +282,8 @@ __END_DECLS
*/
#if !defined (_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
__BEGIN_DECLS
-int asprintf __P((char **, const char *, ...));
+int asprintf __P((char **, const char *, ...))
+ __attribute__((format (printf, 2, 3)));
char *fgetln __P((FILE *, size_t *));
int fpurge __P((FILE *));
int getw __P((FILE *));