summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/asprintf.c3
-rw-r--r--lib/libc/stdio/fprintf.c3
-rw-r--r--lib/libc/stdio/fscanf.c3
-rw-r--r--lib/libc/stdio/printf.c3
-rw-r--r--lib/libc/stdio/scanf.c3
-rw-r--r--lib/libc/stdio/snprintf.c3
-rw-r--r--lib/libc/stdio/sprintf.c3
-rw-r--r--lib/libc/stdio/sscanf.c3
8 files changed, 16 insertions, 8 deletions
diff --git a/lib/libc/stdio/asprintf.c b/lib/libc/stdio/asprintf.c
index d1d023a6b4a..5424c90dc9d 100644
--- a/lib/libc/stdio/asprintf.c
+++ b/lib/libc/stdio/asprintf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asprintf.c,v 1.18 2009/11/09 00:18:27 kurt Exp $ */
+/* $OpenBSD: asprintf.c,v 1.19 2011/05/30 18:48:33 martynas Exp $ */
/*
* Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -23,6 +23,7 @@
#include <stdarg.h>
#include "local.h"
+/* PRINTFLIKE2 */
int
asprintf(char **str, const char *fmt, ...)
{
diff --git a/lib/libc/stdio/fprintf.c b/lib/libc/stdio/fprintf.c
index 7415b2fca39..a391142ea25 100644
--- a/lib/libc/stdio/fprintf.c
+++ b/lib/libc/stdio/fprintf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fprintf.c,v 1.6 2005/08/08 08:05:36 espie Exp $ */
+/* $OpenBSD: fprintf.c,v 1.7 2011/05/30 18:48:33 martynas Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -34,6 +34,7 @@
#include <stdio.h>
#include <stdarg.h>
+/* PRINTFLIKE2 */
int
fprintf(FILE *fp, const char *fmt, ...)
{
diff --git a/lib/libc/stdio/fscanf.c b/lib/libc/stdio/fscanf.c
index 2f3fcebb21b..5fd10d4a464 100644
--- a/lib/libc/stdio/fscanf.c
+++ b/lib/libc/stdio/fscanf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fscanf.c,v 1.9 2005/10/10 17:37:44 espie Exp $ */
+/* $OpenBSD: fscanf.c,v 1.10 2011/05/30 18:48:33 martynas Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -34,6 +34,7 @@
#include <stdio.h>
#include <stdarg.h>
+/* SCANFLIKE2 */
int
fscanf(FILE *fp, const char *fmt, ...)
{
diff --git a/lib/libc/stdio/printf.c b/lib/libc/stdio/printf.c
index 614b4351548..09bb3d7f7db 100644
--- a/lib/libc/stdio/printf.c
+++ b/lib/libc/stdio/printf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printf.c,v 1.7 2005/08/08 08:05:36 espie Exp $ */
+/* $OpenBSD: printf.c,v 1.8 2011/05/30 18:48:33 martynas Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -34,6 +34,7 @@
#include <stdio.h>
#include <stdarg.h>
+/* PRINTFLIKE1 */
int
printf(const char *fmt, ...)
{
diff --git a/lib/libc/stdio/scanf.c b/lib/libc/stdio/scanf.c
index 71194d04e7a..90cf12a3ba7 100644
--- a/lib/libc/stdio/scanf.c
+++ b/lib/libc/stdio/scanf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scanf.c,v 1.9 2005/08/08 08:05:36 espie Exp $ */
+/* $OpenBSD: scanf.c,v 1.10 2011/05/30 18:48:33 martynas Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -34,6 +34,7 @@
#include <stdio.h>
#include <stdarg.h>
+/* SCANFLIKE1 */
int
scanf(const char *fmt, ...)
{
diff --git a/lib/libc/stdio/snprintf.c b/lib/libc/stdio/snprintf.c
index 09659c8fb7d..7b087e95dd1 100644
--- a/lib/libc/stdio/snprintf.c
+++ b/lib/libc/stdio/snprintf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: snprintf.c,v 1.17 2009/11/09 00:18:27 kurt Exp $ */
+/* $OpenBSD: snprintf.c,v 1.18 2011/05/30 18:48:33 martynas Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -37,6 +37,7 @@
#include <stdarg.h>
#include "local.h"
+/* PRINTFLIKE3 */
int
snprintf(char *str, size_t n, const char *fmt, ...)
{
diff --git a/lib/libc/stdio/sprintf.c b/lib/libc/stdio/sprintf.c
index faa7c73ca20..0ca6b055bad 100644
--- a/lib/libc/stdio/sprintf.c
+++ b/lib/libc/stdio/sprintf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sprintf.c,v 1.16 2009/11/09 00:18:27 kurt Exp $ */
+/* $OpenBSD: sprintf.c,v 1.17 2011/05/30 18:48:33 martynas Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -42,6 +42,7 @@ __warn_references(sprintf,
"warning: sprintf() is often misused, please use snprintf()");
#endif
+/* PRINTFLIKE2 */
int
sprintf(char *str, const char *fmt, ...)
{
diff --git a/lib/libc/stdio/sscanf.c b/lib/libc/stdio/sscanf.c
index a0bdf1c5262..ca6b33c9e3c 100644
--- a/lib/libc/stdio/sscanf.c
+++ b/lib/libc/stdio/sscanf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sscanf.c,v 1.12 2005/08/08 08:05:36 espie Exp $ */
+/* $OpenBSD: sscanf.c,v 1.13 2011/05/30 18:48:33 martynas Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -44,6 +44,7 @@ eofread(void *cookie, char *buf, int len)
return (0);
}
+/* SCANFLIKE2 */
int
sscanf(const char *str, const char *fmt, ...)
{