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/a75d29f6acf0
branches: trunk
changeset: 845360:a75d29f6acf0
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 6e351cd5c7cc -r a75d29f6acf0 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