[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/5] ddb/db_sym.c: move assignment outside if
From: |
Marin Ramesa |
Subject: |
[PATCH 2/5] ddb/db_sym.c: move assignment outside if |
Date: |
Thu, 21 Nov 2013 13:11:05 +0100 |
* ddb/db_sym.c: Move assignment outside of if.
(db_lookup): New variable.
---
ddb/db_sym.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ddb/db_sym.c b/ddb/db_sym.c
index 0819e08..359ec7c 100644
--- a/ddb/db_sym.c
+++ b/ddb/db_sym.c
@@ -276,7 +276,9 @@ db_name_is_ambiguous(sym_name)
for (i = 0; i < db_nsymtab; i++) {
db_sym_t sp;
- if (sp = X_db_lookup(&db_symtabs[i], sym_name)) {
+ boolean_t db_lookup;
+ db_lookup = (int)(sp = X_db_lookup(&db_symtabs[i], sym_name));
+ if (db_lookup) {
if (found_once)
{
db_free_symbol(sp);
--
1.8.1.4
[PATCH 3/5] i386/i386at/kd.h: fix implicit declaration of function, Marin Ramesa, 2013/11/21
[PATCH 4/5] i386/i386/db_interface.h: fix implicit declaration of function, Marin Ramesa, 2013/11/21
[PATCH 5/5] i386/i386/db_trace.c: make function void, Marin Ramesa, 2013/11/21