Module Name: src
Committed By: joerg
Date: Tue Dec 23 15:47:32 UTC 2014
Modified Files:
src/external/bsd/ntp/dist/ntpd: refclock_gpsdjson.c
Log Message:
myasprintf (wtf) passes down a format string, so use __printflike.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c
diff -u src/external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c:1.3 src/external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c:1.4
--- src/external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c:1.3 Mon Dec 22 04:21:47 2014
+++ src/external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c Tue Dec 23 15:47:32 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: refclock_gpsdjson.c,v 1.3 2014/12/22 04:21:47 christos Exp $ */
+/* $NetBSD: refclock_gpsdjson.c,v 1.4 2014/12/23 15:47:32 joerg Exp $ */
/*
* refclock_gpsdjson.c - clock driver as GPSD JSON client
@@ -120,7 +120,7 @@ static void gpsd_control (int, const str
static void gpsd_timer (int, peerT *);
static void gpsd_clockstats (int, peerT *);
-static int myasprintf(char**, char const*, ...);
+static int myasprintf(char**, char const*, ...) __printflike(2, 3);
struct refclock refclock_gpsdjson = {
gpsd_start, /* start up driver */