Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp/dist/ntpd myasprintf (wtf) passes down a fo...
details: https://anonhg.NetBSD.org/src/rev/48d08c2418c5
branches: trunk
changeset: 335056:48d08c2418c5
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Dec 23 15:47:32 2014 +0000
description:
myasprintf (wtf) passes down a format string, so use __printflike.
diffstat:
external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 75429e6c75aa -r 48d08c2418c5 external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c
--- a/external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c Tue Dec 23 15:13:30 2014 +0000
+++ b/external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c Tue Dec 23 15:47:32 2014 +0000
@@ -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_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 */
Home |
Main Index |
Thread Index |
Old Index