summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2014-01-15 13:52:10 +0000
committerjoerg <joerg@pkgsrc.org>2014-01-15 13:52:10 +0000
commit5566693e4aacdf743d350e879d8added0e5ae8f1 (patch)
tree8fd7a2efd8c29afb683a46988e6fdad1141cfb5b /pkgtools
parente881becc2fd666208fce645f8606be15fc4acdf5 (diff)
downloadpkgsrc-5566693e4aacdf743d350e879d8added0e5ae8f1.tar.gz
Format string annotations.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pbulk/files/pbulk/lib/pbulk.h8
-rw-r--r--pkgtools/pbulk/files/pbulk/pbuild/jobs.c5
2 files changed, 7 insertions, 6 deletions
diff --git a/pkgtools/pbulk/files/pbulk/lib/pbulk.h b/pkgtools/pbulk/files/pbulk/lib/pbulk.h
index f21688f43df..905f9b4c372 100644
--- a/pkgtools/pbulk/files/pbulk/lib/pbulk.h
+++ b/pkgtools/pbulk/files/pbulk/lib/pbulk.h
@@ -1,4 +1,4 @@
-/* $NetBSD: pbulk.h,v 1.4 2012/11/23 12:13:35 joerg Exp $ */
+/* $NetBSD: pbulk.h,v 1.5 2014/01/15 13:52:10 joerg Exp $ */
/*-
* Copyright (c) 2007, 2009 Joerg Sonnenberger <joerg@NetBSD.org>.
@@ -52,11 +52,9 @@ struct signal_event {
};
#if defined(__GNUC__) && __GNUC__ >= 2
-char *xasprintf(const char *, ...)
- __attribute__((__format__(__printf__, 1, 2)));
-#else
-char *xasprintf(const char *, ...);
+__attribute__((__format__(__printf__, 1, 2)))
#endif
+char *xasprintf(const char *, ...);
void event_init(void);
void event_add(struct event *, int, int, int,
diff --git a/pkgtools/pbulk/files/pbulk/pbuild/jobs.c b/pkgtools/pbulk/files/pbulk/pbuild/jobs.c
index 86f38876e92..46c05e5064b 100644
--- a/pkgtools/pbulk/files/pbulk/pbuild/jobs.c
+++ b/pkgtools/pbulk/files/pbulk/pbuild/jobs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: jobs.c,v 1.14 2012/11/23 12:13:35 joerg Exp $ */
+/* $NetBSD: jobs.c,v 1.15 2014/01/15 13:52:10 joerg Exp $ */
/*-
* Copyright (c) 2007, 2009, 2011 Joerg Sonnenberger <joerg@NetBSD.org>.
@@ -66,6 +66,9 @@ static char *scan_output_content;
static TAILQ_HEAD(, build_job) buildable_jobs;
+#if defined(__GNUC__) && __GNUC__ >= 2
+__attribute__((__format__(__printf__, 1, 2)))
+#endif
static void
ts_printf(const char *fmt, ...)
{