Module Name: src
Committed By: christos
Date: Sun Dec 29 03:26:07 UTC 2013
Modified Files:
src/external/bsd/ntp/dist/sntp: main.c
Log Message:
not all characters are born signed.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/bsd/ntp/dist/sntp/main.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/sntp/main.c
diff -u src/external/bsd/ntp/dist/sntp/main.c:1.8 src/external/bsd/ntp/dist/sntp/main.c:1.9
--- src/external/bsd/ntp/dist/sntp/main.c:1.8 Fri Dec 27 22:20:15 2013
+++ src/external/bsd/ntp/dist/sntp/main.c Sat Dec 28 22:26:07 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.8 2013/12/28 03:20:15 christos Exp $ */
+/* $NetBSD: main.c,v 1.9 2013/12/29 03:26:07 christos Exp $ */
#include <config.h>
@@ -1398,7 +1398,7 @@ set_li_vn_mode (
leap = 3;
}
- if (version < 0 || version > 7) {
+ if ((unsigned char)version > 7) {
msyslog(LOG_DEBUG, "set_li_vn_mode: version < 0 or > 7, using 4");
version = 4;
}