]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Remove unneeded variable.
authorReg Clemens <clemens@ntp.org>
Sun, 10 Aug 2008 22:21:32 +0000 (18:21 -0400)
committerReg Clemens <clemens@ntp.org>
Sun, 10 Aug 2008 22:21:32 +0000 (18:21 -0400)
bk: 489f69ecogV5GhVWd_8PSYj6UdgKCg

ntpd/refclock_oncore.c

index e1d23a991845f33d1d730112e158fdb1a7b18dee..0244b50af6d37d7c8d297f9819de19c51b7b2f91 100644 (file)
@@ -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);
        }