From: Reg Clemens Date: Sun, 10 Aug 2008 22:21:32 +0000 (-0400) Subject: Remove unneeded variable. X-Git-Tag: NTP_4_2_5P125~4^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ac266bb6fa2b2b75ebad1c334c66abc08c55989;p=thirdparty%2Fntp.git Remove unneeded variable. bk: 489f69ecogV5GhVWd_8PSYj6UdgKCg --- diff --git a/ntpd/refclock_oncore.c b/ntpd/refclock_oncore.c index e1d23a991..0244b50af 100644 --- a/ntpd/refclock_oncore.c +++ b/ntpd/refclock_oncore.c @@ -531,7 +531,7 @@ oncore_start( #define STRING_LEN 32 register struct instance *instance; struct refclockproc *pp; - int fd1, fd2, num; + int fd1, fd2; char device1[STRING_LEN], device2[STRING_LEN], Msg[160]; const char *cp; struct stat stat1, stat2; @@ -623,11 +623,10 @@ oncore_start( exit(1); } } - num = fd2; /* open ppsapi soure */ - if (time_pps_create(num, &instance->pps_h) < 0) { + if (time_pps_create(fd2, &instance->pps_h) < 0) { record_clock_stats(&(instance->peer->srcadr), "PPSAPI not found in kernel"); return(0); }