Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/top/dist remove unused variables



details:   https://anonhg.NetBSD.org/src/rev/bf8a0e510eb0
branches:  trunk
changeset: 790748:bf8a0e510eb0
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 20 03:02:26 2013 +0000

description:
remove unused variables

diffstat:

 external/bsd/top/dist/hash.c             |  13 -------------
 external/bsd/top/dist/machine/m_netbsd.c |  10 +++-------
 2 files changed, 3 insertions(+), 20 deletions(-)

diffs (128 lines):

diff -r 049363907931 -r bf8a0e510eb0 external/bsd/top/dist/hash.c
--- a/external/bsd/top/dist/hash.c      Sun Oct 20 03:00:02 2013 +0000
+++ b/external/bsd/top/dist/hash.c      Sun Oct 20 03:02:26 2013 +0000
@@ -579,7 +579,6 @@
     llistitem *li;
     void *ans;
     hash_item_uint *hi;
-    unsigned int key;
 
     /* sanity checks */
     if (pos == NULL || pos->ll_last == pos->ll_item)
@@ -597,9 +596,6 @@
     hi = (hash_item_uint *)li->datum;
     ans = hi->value;
 
-    /* free up the space */
-    key = hi->key;
-    ;
     ll_freeitem(li);
 
     /* back up to previous item */
@@ -917,7 +913,6 @@
     llistitem *li;
     void *ans;
     hash_item_pid *hi;
-    pid_t key;
 
     /* sanity checks */
     if (pos == NULL || pos->ll_last == pos->ll_item)
@@ -936,8 +931,6 @@
     ans = hi->value;
 
     /* free up the space */
-    key = hi->key;
-    ;
     ll_freeitem(li);
 
     /* back up to previous item */
@@ -1593,7 +1586,6 @@
     llistitem *li;
     void *ans;
     hash_item_pidthr *hi;
-    pidthr_t key;
 
     /* sanity checks */
     if (pos == NULL || pos->ll_last == pos->ll_item)
@@ -1612,8 +1604,6 @@
     ans = hi->value;
 
     /* free up the space */
-    key = hi->key;
-    ;
     ll_freeitem(li);
 
     /* back up to previous item */
@@ -1932,7 +1922,6 @@
     llistitem *li;
     void *ans;
     hash_item_lwpid *hi;
-    lwpid_t key;
 
     /* sanity checks */
     if (pos == NULL || pos->ll_last == pos->ll_item)
@@ -1951,8 +1940,6 @@
     ans = hi->value;
 
     /* free up the space */
-    key = hi->key;
-    ;
     ll_freeitem(li);
 
     /* back up to previous item */
diff -r 049363907931 -r bf8a0e510eb0 external/bsd/top/dist/machine/m_netbsd.c
--- a/external/bsd/top/dist/machine/m_netbsd.c  Sun Oct 20 03:00:02 2013 +0000
+++ b/external/bsd/top/dist/machine/m_netbsd.c  Sun Oct 20 03:02:26 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: m_netbsd.c,v 1.17 2013/01/03 10:12:36 para Exp $       */
+/*     $NetBSD: m_netbsd.c,v 1.18 2013/10/20 03:02:27 christos Exp $   */
 
 /*
  * top - a top users display for Unix
@@ -37,12 +37,12 @@
  *             Andrew Doran <ad%NetBSD.org@localhost>
  *
  *
- * $Id: m_netbsd.c,v 1.17 2013/01/03 10:12:36 para Exp $
+ * $Id: m_netbsd.c,v 1.18 2013/10/20 03:02:27 christos Exp $
  */
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: m_netbsd.c,v 1.17 2013/01/03 10:12:36 para Exp $");
+__RCSID("$NetBSD: m_netbsd.c,v 1.18 2013/10/20 03:02:27 christos Exp $");
 #endif
 
 #include <sys/param.h>
@@ -587,7 +587,6 @@
        int show_idle;
        int show_system;
        int show_uid;
-       int show_command;
 
        static struct handle handle;
 
@@ -627,7 +626,6 @@
        show_idle = sel->idle;
        show_system = sel->system;
        show_uid = sel->uid != -1;
-       show_command = sel->command != NULL;
 
        /* count up process states and get pointers to interesting procs */
        total_procs = 0;
@@ -687,7 +685,6 @@
        int show_idle;
        int show_system;
        int show_uid;
-       int show_command;
 
        static struct handle handle;
 
@@ -739,7 +736,6 @@
        show_idle = sel->idle;
        show_system = sel->system;
        show_uid = sel->uid != -1;
-       show_command = sel->command != NULL;
 
        /* count up thread states and get pointers to interesting threads */
        total_lwps = 0;



Home | Main Index | Thread Index | Old Index