Module Name: src
Committed By: christos
Date: Sun Aug 12 07:22:24 UTC 2012
Modified Files:
src/external/bsd/ntp/dist/ntpd: refclock_parse.c
Log Message:
add cast.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/bsd/ntp/dist/ntpd/refclock_parse.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/ntp/dist/ntpd/refclock_parse.c
diff -u src/external/bsd/ntp/dist/ntpd/refclock_parse.c:1.8 src/external/bsd/ntp/dist/ntpd/refclock_parse.c:1.9
--- src/external/bsd/ntp/dist/ntpd/refclock_parse.c:1.8 Sun Aug 12 02:16:51 2012
+++ src/external/bsd/ntp/dist/ntpd/refclock_parse.c Sun Aug 12 03:22:24 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: refclock_parse.c,v 1.8 2012/08/12 06:16:51 christos Exp $ */
+/* $NetBSD: refclock_parse.c,v 1.9 2012/08/12 07:22:24 christos Exp $ */
/*
* /src/NTP/REPOSITORY/ntp4-dev/ntpd/refclock_parse.c,v 4.81 2009/05/01 10:15:29 kardel RELEASE_20090105_A
@@ -2434,7 +2434,7 @@ ap(char *buffer, size_t len, char *pos,
if (l != -1) {
rem--;
- if (rem >= l)
+ if (rem >= (size_t)l)
pos += l;
else
pos += rem;