Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Don't use == for assignment.



details:   https://anonhg.NetBSD.org/src/rev/5e833668dc75
branches:  trunk
changeset: 942058:5e833668dc75
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Wed Nov 04 19:16:34 2020 +0000

description:
Don't use == for assignment.

diffstat:

 sys/kern/sys_ptrace.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1b006450812b -r 5e833668dc75 sys/kern/sys_ptrace.c
--- a/sys/kern/sys_ptrace.c     Wed Nov 04 19:11:39 2020 +0000
+++ b/sys/kern/sys_ptrace.c     Wed Nov 04 19:16:34 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_ptrace.c,v 1.10 2020/11/04 19:03:17 pgoyette Exp $ */
+/*     $NetBSD: sys_ptrace.c,v 1.11 2020/11/04 19:16:34 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_ptrace.c,v 1.10 2020/11/04 19:03:17 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_ptrace.c,v 1.11 2020/11/04 19:16:34 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ptrace.h"
@@ -207,7 +207,7 @@
  
        switch (cmd) {
        case MODULE_CMD_INIT: 
-               error == ptrace_init();
+               error = ptrace_init();
                break;
        case MODULE_CMD_FINI:
                error = ptrace_fini();



Home | Main Index | Thread Index | Old Index