tstellar / rpms / ntp

Forked from rpms/ntp 3 years ago
Clone
1cb18fc
diff -up ntp-4.2.4p7/ntpstat-0.2/ntpstat.c.ntpstat ntp-4.2.4p7/ntpstat-0.2/ntpstat.c
1cb18fc
--- ntp-4.2.4p7/ntpstat-0.2/ntpstat.c.ntpstat	2002-06-10 08:02:12.000000000 +0200
1cb18fc
+++ ntp-4.2.4p7/ntpstat-0.2/ntpstat.c	2009-07-20 12:22:35.000000000 +0200
1cb18fc
@@ -187,7 +187,7 @@ int main (void) {
1cb18fc
     else
1cb18fc
       printf("unknown source");
1cb18fc
 
1cb18fc
-    if (!strncmp(clksrcname[clksrc],clksrcname[6],sizeof(clksrcname[6]))) {
1cb18fc
+    if (clksrc == 6) {
1cb18fc
       // source of sync is another NTP server so check the IP address
1cb18fc
       strncpy(buff, ntpmsg.payload, sizeof(buff));
1cb18fc
       if ((newstr = strstr (buff, REFID))) {