Module Name: src
Committed By: he
Date: Mon Nov 30 10:37:25 UTC 2015
Modified Files:
src/external/bsd/ntp/dist/sntp/libopts: enum.c
Log Message:
As far as I (and my compiler) can tell, there's no need to cast
the arg to strncmp().
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/bsd/ntp/dist/sntp/libopts/enum.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/libopts/enum.c
diff -u src/external/bsd/ntp/dist/sntp/libopts/enum.c:1.5 src/external/bsd/ntp/dist/sntp/libopts/enum.c:1.6
--- src/external/bsd/ntp/dist/sntp/libopts/enum.c:1.5 Fri Jul 10 14:20:35 2015
+++ src/external/bsd/ntp/dist/sntp/libopts/enum.c Mon Nov 30 10:37:25 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: enum.c,v 1.5 2015/07/10 14:20:35 christos Exp $ */
+/* $NetBSD: enum.c,v 1.6 2015/11/30 10:37:25 he Exp $ */
/**
@@ -217,7 +217,7 @@ find_name(char const * name, tOptions *
* Multiple partial matches means we have an ambiguous match.
*/
for (idx = 0; idx < name_ct; idx++) {
- if (strncmp(paz_names[idx], (const char *)name, len) == 0) {
+ if (strncmp(paz_names[idx], name, len) == 0) {
if (paz_names[idx][len] == NUL)
return idx; /* full match */