Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Appease gcc



details:   https://anonhg.NetBSD.org/src/rev/37b1e5e11b0f
branches:  trunk
changeset: 968220:37b1e5e11b0f
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Jan 07 08:52:47 2020 +0000

description:
Appease gcc

diffstat:

 sys/kern/tty.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 13286ae3662a -r 37b1e5e11b0f sys/kern/tty.c
--- a/sys/kern/tty.c    Tue Jan 07 08:22:23 2020 +0000
+++ b/sys/kern/tty.c    Tue Jan 07 08:52:47 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty.c,v 1.284 2020/01/06 11:18:51 ad Exp $     */
+/*     $NetBSD: tty.c,v 1.285 2020/01/07 08:52:47 skrll Exp $  */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.284 2020/01/06 11:18:51 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.285 2020/01/07 08:52:47 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -2530,7 +2530,7 @@
        struct timeval  utime, stime;
        int             tmp;
        fixpt_t         pctcpu = 0;
-       const char      *msg;
+       const char      *msg = NULL;
        char            lmsg[100];
        long            rss;
        bool            again = false;
@@ -2588,7 +2588,6 @@
                                mutex_exit(pick->p_lock);
                                return;
                        }
-                       msg = NULL;
                }
        }
 



Home | Main Index | Thread Index | Old Index