bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 10/28] ddb/db_aout.c (aout_db_qualified_search): use DB_SYM_NULL


From: Marin Ramesa
Subject: [PATCH 10/28] ddb/db_aout.c (aout_db_qualified_search): use DB_SYM_NULL as return value
Date: Sun, 8 Dec 2013 12:40:12 +0100

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(-)

diff --git a/ddb/db_aout.c b/ddb/db_aout.c
index 9a018a6..3a48533 100644
--- a/ddb/db_aout.c
+++ b/ddb/db_aout.c
@@ -240,19 +240,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) {
                /*
@@ -274,7 +274,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
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]