Module Name: src
Committed By: martin
Date: Mon Aug 19 07:28:22 UTC 2024
Modified Files:
src/external/bsd/ntp/dist/libntp/lib/isc: assertions.c
Log Message:
isc_assertion_typetotext: kill invalid default: case, there is no
possible enum value to trigger this path, and the returned string
may not be NULL.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/bsd/ntp/dist/libntp/lib/isc/assertions.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/libntp/lib/isc/assertions.c
diff -u src/external/bsd/ntp/dist/libntp/lib/isc/assertions.c:1.2 src/external/bsd/ntp/dist/libntp/lib/isc/assertions.c:1.3
--- src/external/bsd/ntp/dist/libntp/lib/isc/assertions.c:1.2 Sun Aug 18 20:47:14 2024
+++ src/external/bsd/ntp/dist/libntp/lib/isc/assertions.c Mon Aug 19 07:28:22 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: assertions.c,v 1.2 2024/08/18 20:47:14 christos Exp $ */
+/* $NetBSD: assertions.c,v 1.3 2024/08/19 07:28:22 martin Exp $ */
/*
* Copyright (C) 2004, 2005, 2007-2009 Internet Systems Consortium, Inc. ("ISC")
@@ -93,8 +93,6 @@ isc_assertion_typetotext(isc_assertionty
case isc_assertiontype_invariant:
result = "INVARIANT";
break;
- default:
- result = NULL;
}
return (result);
}