Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/ntp/dist/ntpq Clang compile fix from Joerg Sonn...



details:   https://anonhg.NetBSD.org/src/rev/aac654ba6d3d
branches:  trunk
changeset: 773483:aac654ba6d3d
user:      kardel <kardel%NetBSD.org@localhost>
date:      Fri Feb 03 10:20:29 2012 +0000

description:
Clang compile fix from Joerg Sonneberger approved by releng.

diffstat:

 external/bsd/ntp/dist/ntpq/ntpq.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1b5a587b4230 -r aac654ba6d3d external/bsd/ntp/dist/ntpq/ntpq.c
--- a/external/bsd/ntp/dist/ntpq/ntpq.c Fri Feb 03 10:11:07 2012 +0000
+++ b/external/bsd/ntp/dist/ntpq/ntpq.c Fri Feb 03 10:20:29 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ntpq.c,v 1.6 2012/02/01 22:48:15 kardel Exp $  */
+/*     $NetBSD: ntpq.c,v 1.7 2012/02/03 10:20:29 kardel Exp $  */
 
 /*
  * ntpq - query an NTP server using mode 6 commands
@@ -1080,7 +1080,7 @@
 
                if (debug >= 2)
                        printf("Got packet, size = %d\n", n);
-               if ((int)count > (n - CTL_HEADER_LEN)) {
+               if ((int)count > (n - (int)CTL_HEADER_LEN)) {
                        if (debug)
                                printf("Received count of %d octets, "
                                        "data in packet is %u\n",



Home | Main Index | Thread Index | Old Index