bug-hurd
[Top][All Lists]
Advanced

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

[PATCH 06/11] i386/i386/db_interface.c: comment function and the calls


From: Marin Ramesa
Subject: [PATCH 06/11] i386/i386/db_interface.c: comment function and the calls
Date: Wed, 20 Nov 2013 20:42:50 +0100

* i386/i386/db_interface.c (db_search_null): Comment unused function and the 
calls in the never reached code.

---
 i386/i386/db_interface.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/i386/i386/db_interface.c b/i386/i386/db_interface.c
index d8d5b9b..12e59ca 100644
--- a/i386/i386/db_interface.c
+++ b/i386/i386/db_interface.c
@@ -640,6 +640,7 @@ db_phys_eq(
 #define DB_USER_STACK_ADDR             (VM_MIN_KERNEL_ADDRESS)
 #define DB_NAME_SEARCH_LIMIT           (DB_USER_STACK_ADDR-(INTEL_PGBYTES*3))
 
+/*
 static boolean_t
 db_search_null(
        task_t          task,
@@ -670,6 +671,7 @@ db_search_null(
        }
        return FALSE;
 }
+*/
 
 #define GNU
 
@@ -771,17 +773,18 @@ db_task_name(
        /*
         * skip nulls at the end
         */
+       /*
        if (!db_search_null(task, &vaddr, DB_NAME_SEARCH_LIMIT, &kaddr, 0)) {
            db_printf(DB_NULL_TASK_NAME);
            return;
-       }
+       }*/
        /*
         * search start of args
         */
-       if (!db_search_null(task, &vaddr, DB_NAME_SEARCH_LIMIT, &kaddr, 1)) {
+       /*if (!db_search_null(task, &vaddr, DB_NAME_SEARCH_LIMIT, &kaddr, 1)) {
            db_printf(DB_NULL_TASK_NAME);
            return;
-       }
+       }*/
 #endif /* GNU */
 
 ok:
-- 
1.8.1.4




reply via email to

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