Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dev/fbt/x86 PR/56355: Taylor Campbell: r...
details: https://anonhg.NetBSD.org/src/rev/e0199b700089
branches: trunk
changeset: 1022953:e0199b700089
user: christos <christos%NetBSD.org@localhost>
date: Sun Aug 15 16:33:57 2021 +0000
description:
PR/56355: Taylor Campbell: restore strcmp() over strncmp()
diffstat:
external/cddl/osnet/dev/fbt/x86/fbt_isa.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (22 lines):
diff -r 686c48717270 -r e0199b700089 external/cddl/osnet/dev/fbt/x86/fbt_isa.c
--- a/external/cddl/osnet/dev/fbt/x86/fbt_isa.c Sun Aug 15 15:12:36 2021 +0000
+++ b/external/cddl/osnet/dev/fbt/x86/fbt_isa.c Sun Aug 15 16:33:57 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fbt_isa.c,v 1.4 2021/08/11 11:16:49 christos Exp $ */
+/* $NetBSD: fbt_isa.c,v 1.5 2021/08/15 16:33:57 christos Exp $ */
/*
* CDDL HEADER START
@@ -251,9 +251,9 @@
/*
* Exclude some more symbols which can be called from probe context.
*/
- if (strncmp(name, "trap", 4) ||
- strncmp(name, "x86_curcpu", 10) == 0 ||
- strncmp(name, "x86_curlwp", 10) == 0) {
+ if (strcmp(name, "trap") ||
+ strcmp(name, "x86_curcpu") == 0 ||
+ strcmp(name, "x86_curlwp") == 0) {
return 0;
}
#endif
Home |
Main Index |
Thread Index |
Old Index