Source-Changes-HG archive

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

[src/trunk]: src/sys/kern fix variable name



details:   https://anonhg.NetBSD.org/src/rev/54a91f624382
branches:  trunk
changeset: 345790:54a91f624382
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jun 09 00:17:45 2016 +0000

description:
fix variable name

diffstat:

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

diffs (27 lines):

diff -r b5377258428e -r 54a91f624382 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Wed Jun 08 23:55:24 2016 +0000
+++ b/sys/kern/kern_exec.c      Thu Jun 09 00:17:45 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exec.c,v 1.432 2016/06/08 23:55:24 christos Exp $ */
+/*     $NetBSD: kern_exec.c,v 1.433 2016/06/09 00:17:45 christos Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.432 2016/06/08 23:55:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.433 2016/06/09 00:17:45 christos Exp $");
 
 #include "opt_exec.h"
 #include "opt_execfmt.h"
@@ -741,7 +741,7 @@
 
        /* see if we can run it. */
        if ((error = check_exec(l, epp, data->ed_pathbuf)) != 0) {
-               if (error != ENOENT && errno != EACCES) {
+               if (error != ENOENT && error != EACCES) {
                        DPRINTF(("%s: check exec failed %d\n",
                            __func__, error));
                }



Home | Main Index | Thread Index | Old Index