Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/freebsd Forgot to reverse the conditional test.



details:   https://anonhg.NetBSD.org/src/rev/af78a18557ff
branches:  trunk
changeset: 584336:af78a18557ff
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Sep 13 16:35:24 2005 +0000

description:
Forgot to reverse the conditional test.

diffstat:

 sys/compat/freebsd/freebsd_misc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f6bdd89477ee -r af78a18557ff sys/compat/freebsd/freebsd_misc.c
--- a/sys/compat/freebsd/freebsd_misc.c Tue Sep 13 15:50:17 2005 +0000
+++ b/sys/compat/freebsd/freebsd_misc.c Tue Sep 13 16:35:24 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: freebsd_misc.c,v 1.22 2005/09/12 22:17:49 christos Exp $       */
+/*     $NetBSD: freebsd_misc.c,v 1.23 2005/09/13 16:35:24 christos Exp $       */
 
 /*
  * Copyright (c) 1995 Frank van der Linden
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: freebsd_misc.c,v 1.22 2005/09/12 22:17:49 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: freebsd_misc.c,v 1.23 2005/09/13 16:35:24 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ntp.h"
@@ -231,7 +231,7 @@
        } */ *uap = v;
        struct proc *p = l->l_proc;
 
-       if (KTRPOINT(p, KTR_USER))
+       if (!KTRPOINT(p, KTR_USER))
                return 0;
 
        if (SCARG(uap, len) > KTR_USER_MAXLEN)



Home | Main Index | Thread Index | Old Index