]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Fix unused variable warning in ntpdate.c.
authorMartin Burnicki <burnicki@ntp.org>
Tue, 7 Apr 2020 15:49:08 +0000 (17:49 +0200)
committerMartin Burnicki <burnicki@ntp.org>
Tue, 7 Apr 2020 15:49:08 +0000 (17:49 +0200)
bk: 5e8ca0f45ogn1iFFMk8oqCRKOqPwJA

ntpdate/ntpdate.c

index f6c5156ee20a6cfd8e26445d9fbd46ac57387b64..ce8c4a1ddc473d04e84ee99a7b2e5c1f17f6fba9 100644 (file)
@@ -2013,7 +2013,7 @@ l_adj_systime(
        l_fp *ts
        )
 {
-       struct timeval adjtv, oadjtv;
+       struct timeval adjtv;
        int isneg = 0;
        l_fp offset;
 #ifndef STEP_SLEW
@@ -2053,6 +2053,7 @@ l_adj_systime(
                /* A time correction needs to be applied. */
 #if !defined SYS_WINNT && !defined SYS_CYGWIN32
                /* Slew the time on systems that support this. */
+               struct timeval oadjtv;
                if (adjtime(&adjtv, &oadjtv) < 0) {
                        msyslog(LOG_ERR, "Can't adjust the time of day: %m");
                        exit(1);