Source-Changes-HG archive

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

[src/trunk]: src/sys/kern remove offs initialization and XXX gcc comment. Off...



details:   https://anonhg.NetBSD.org/src/rev/a5600c54b473
branches:  trunk
changeset: 452329:a5600c54b473
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jun 27 17:09:31 2019 +0000

description:
remove offs initialization and XXX gcc comment. Offs should always be
initialized. Pointed out by maxv.

diffstat:

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

diffs (27 lines):

diff -r 2dae2c7182fe -r a5600c54b473 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Thu Jun 27 17:07:51 2019 +0000
+++ b/sys/kern/kern_exec.c      Thu Jun 27 17:09:31 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exec.c,v 1.475 2019/06/27 17:07:51 christos Exp $ */
+/*     $NetBSD: kern_exec.c,v 1.476 2019/06/27 17:09:31 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.475 2019/06/27 17:07:51 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.476 2019/06/27 17:09:31 christos Exp $");
 
 #include "opt_exec.h"
 #include "opt_execfmt.h"
@@ -690,7 +690,7 @@
        struct proc             *p;
        char                    *dp;
        u_int                   modgen;
-       size_t                  offs = 0;       // XXX: GCC
+       size_t                  offs;
 
        KASSERT(data != NULL);
 



Home | Main Index | Thread Index | Old Index