summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-08 12:40:12 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-09 00:50:01 +0900
commit690144baccc1ea91ff87722b2a0515eebea6e148 (patch)
tree88c83e9cc8bae0825e7b3a40573255467952e149
parent1e2f0bcecaecb516d123db6d760c296f718bbcc1 (diff)
ddb/db_aout.c (aout_db_qualified_search): use DB_SYM_NULL as return value
Function aout_db_qualified_search() returns db_sym_t. Use DB_SYM_NULL as return value instead of zero. * ddb/db_aout.c (aout_db_qualified_search): Use DB_SYM_NULL as return value.
-rw-r--r--ddb/db_aout.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ddb/db_aout.c b/ddb/db_aout.c
index 9e1c3d4..54a9e64 100644
--- a/ddb/db_aout.c
+++ b/ddb/db_aout.c
@@ -245,19 +245,19 @@ aout_db_qualified_search(stab, file, sym, line)
boolean_t in_file;
if (file == 0 && sym == 0)
- return(0);
+ return(DB_SYM_NULL);
if (file) {
if ((sp = aout_db_search_name(sp, ep, file, N_TEXT, &fp)) == 0)
- return(0);
+ return(DB_SYM_NULL);
}
if (sym) {
sp = aout_db_search_name(sp, ep, sym, (line > 0)? N_FUN: 0, &fp);
if (sp == 0)
- return(0);
+ return(DB_SYM_NULL);
}
if (line > 0) {
if (file && !aout_db_eq_name(fp, file))
- return(0);
+ return(DB_SYM_NULL);
found_sp = 0;
if (sp->n_type == N_FUN) {
/*
@@ -279,7 +279,7 @@ aout_db_qualified_search(stab, file, sym, line)
}
}
if (sp->n_type != N_SLINE || sp->n_value < func_top)
- return(0);
+ return(DB_SYM_NULL);
} else {
/*
* qualified by only file name