Source-Changes-HG archive

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

[src/trunk]: src/sys/ddb db_command - don't hide local static variable in the...



details:   https://anonhg.NetBSD.org/src/rev/022128c2fbdd
branches:  trunk
changeset: 459869:022128c2fbdd
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sun Sep 29 02:49:59 2019 +0000

description:
db_command - don't hide local static variable in the middle of other
local variable definitions.  While here, get rid of the alignment of
variable names.

diffstat:

 sys/ddb/db_command.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (38 lines):

diff -r c2d6c86e4991 -r 022128c2fbdd sys/ddb/db_command.c
--- a/sys/ddb/db_command.c      Sun Sep 29 02:42:12 2019 +0000
+++ b/sys/ddb/db_command.c      Sun Sep 29 02:49:59 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_command.c,v 1.163 2019/09/29 02:42:12 uwe Exp $     */
+/*     $NetBSD: db_command.c,v 1.164 2019/09/29 02:49:59 uwe Exp $     */
 
 /*
  * Copyright (c) 1996, 1997, 1998, 1999, 2002, 2009 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.163 2019/09/29 02:42:12 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.164 2019/09/29 02:49:59 uwe Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_aio.h"
@@ -820,13 +820,13 @@
 static void
 db_command(const struct db_command **last_cmdp)
 {
+       static db_expr_t last_count = 0;
+
+       int t;
        const struct db_command *command;
-       static db_expr_t last_count = 0;
-       db_expr_t       addr, count;
-       bool            have_addr;
-       char            modif[TOK_STRING_SIZE];
-
-       int                     t;
+       db_expr_t addr, count;
+       bool have_addr;
+       char modif[TOK_STRING_SIZE];
 
        command = NULL;
        have_addr = false;



Home | Main Index | Thread Index | Old Index