From 690144baccc1ea91ff87722b2a0515eebea6e148 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Sun, 8 Dec 2013 12:40:12 +0100 Subject: 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. --- ddb/db_aout.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ddb') diff --git a/ddb/db_aout.c b/ddb/db_aout.c index 9e1c3d49..54a9e646 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 -- cgit v1.2.3