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/a444e7db9fcd
branches:  trunk
changeset: 805198:a444e7db9fcd
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 fb6f84ea5099 -r a444e7db9fcd 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