summaryrefslogtreecommitdiff
path: root/sys/ddb
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-23 01:39:03 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-23 01:39:03 +0000
commitd333f046877b1711c170cfae5d971a4e1793f469 (patch)
tree1d72da7e173d6a5b7efbb9827d4c7888adc0b424 /sys/ddb
parentcbed091fb1c6d0aedaf6c4c80c43c2c747fb5487 (diff)
assign pointers NULL rather than 0
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_command.c4
-rw-r--r--sys/ddb/db_sym.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index 19cff322be0..f972d6f23b7 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_command.c,v 1.65 2015/03/14 03:38:46 jsg Exp $ */
+/* $OpenBSD: db_command.c,v 1.66 2015/12/23 01:39:02 mmcc Exp $ */
/* $NetBSD: db_command.c,v 1.20 1996/03/30 22:30:05 christos Exp $ */
/*
@@ -600,7 +600,7 @@ void db_machine_commands_install(struct db_command *ptr)
#endif
-struct db_command *db_last_command = 0;
+struct db_command *db_last_command = NULL;
void
db_help_cmd(db_expr_t addr, int haddr, db_expr_t count, char *modif)
diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c
index feae038d68b..60224dc2552 100644
--- a/sys/ddb/db_sym.c
+++ b/sys/ddb/db_sym.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_sym.c,v 1.38 2015/08/12 06:19:25 mlarkin Exp $ */
+/* $OpenBSD: db_sym.c,v 1.39 2015/12/23 01:39:02 mmcc Exp $ */
/* $NetBSD: db_sym.c,v 1.24 2000/08/11 22:50:47 tv Exp $ */
/*
@@ -445,7 +445,7 @@ db_search_symbol(db_addr_t val, db_strategy_t strategy, db_expr_t *offp)
db_sym_t ret = DB_SYM_NULL, sym;
newdiff = diff = ~0;
- db_last_symtab = 0;
+ db_last_symtab = NULL;
for (i = 0; i < MAXNOSYMTABS; i++) {
if (!db_symtabs[i].name)
continue;
@@ -469,7 +469,7 @@ db_symbol_values(db_sym_t sym, char **namep, db_expr_t *valuep)
db_expr_t value;
if (sym == DB_SYM_NULL) {
- *namep = 0;
+ *namep = NULL;
return;
}