]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - ntp/patches/ntpstat-0.2-1-clksrc.patch
ppp: Re-add ifname patch
[people/ms/ipfire-3.x.git] / ntp / patches / ntpstat-0.2-1-clksrc.patch
CommitLineData
5af29fb3
MT
1diff -up ntp-4.2.4p7/ntpstat-0.2/ntpstat.c.ntpstat ntp-4.2.4p7/ntpstat-0.2/ntpstat.c
2--- ntp-4.2.4p7/ntpstat-0.2/ntpstat.c.ntpstat 2002-06-10 08:02:12.000000000 +0200
3+++ ntp-4.2.4p7/ntpstat-0.2/ntpstat.c 2009-07-20 12:22:35.000000000 +0200
4@@ -187,7 +187,7 @@ int main (void) {
5 else
6 printf("unknown source");
7
8- if (!strncmp(clksrcname[clksrc],clksrcname[6],sizeof(clksrcname[6]))) {
9+ if (clksrc == 6) {
10 // source of sync is another NTP server so check the IP address
11 strncpy(buff, ntpmsg.payload, sizeof(buff));
12 if ((newstr = strstr (buff, REFID))) {