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/285ce170b92b
branches:  trunk
changeset: 985267:285ce170b92b
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 f417f48e0c27 -r 285ce170b92b 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