]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
libntp/icom.c: Typos fix. Harlan Stenn.
authorHarlan Stenn <stenn@ntp.org>
Mon, 20 Jul 2015 01:46:59 +0000 (21:46 -0400)
committerHarlan Stenn <stenn@ntp.org>
Mon, 20 Jul 2015 01:46:59 +0000 (21:46 -0400)
bk: 55ac5313MeyJOL8cUboJZyXN5lw7jw

ChangeLog
libntp/icom.c

index 186f5d432c7607c45b20c206989511865f92a31e..ec95c2f703fa78c45fde8983da4dbd36c2023c51 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -47,6 +47,7 @@
 * scripts/lib/NTP/Util.pm: stratum output is version-dependent.  Harlan Stenn.
 * Get rid of the NTP_ prefix on our assertion macros.  Harlan Stenn.
 * Code cleanup.  Harlan Stenn.
+* libntp/icom.c: Typos fix.  Harlan Stenn.
 ---
 (4.2.8p3) 2015/06/29 Released by Harlan Stenn <stenn@ntp.org>
 
index 1185e69dbd85b3cedeac37f17cf9a42a35e5fc0e..2e95db5eb3f40cb572e8ebbb8b6b6f46698f2e58 100644 (file)
@@ -87,7 +87,7 @@ icom_freq(
                temp = 5;
        doublefreq(freq * 1e6, &cmd[6], temp);
        rc = write(fd, cmd, temp + 7);
-       if (rc != -1) {
+       if (rc == -1) {
                msyslog(LOG_ERR, "icom_freq: write() failed: %m");
                return -1;
        } else if (rc != temp + 7) {