Module Name: src
Committed By: christos
Date: Sun Oct 20 03:02:27 UTC 2013
Modified Files:
src/external/bsd/top/dist: hash.c
src/external/bsd/top/dist/machine: m_netbsd.c
Log Message:
remove unused variables
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/top/dist/hash.c
cvs rdiff -u -r1.17 -r1.18 src/external/bsd/top/dist/machine/m_netbsd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/top/dist/hash.c
diff -u src/external/bsd/top/dist/hash.c:1.3 src/external/bsd/top/dist/hash.c:1.4
--- src/external/bsd/top/dist/hash.c:1.3 Tue May 5 14:51:21 2009
+++ src/external/bsd/top/dist/hash.c Sat Oct 19 23:02:26 2013
@@ -579,7 +579,6 @@ hash_remove_pos_uint(hash_pos *pos)
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 @@ hash_remove_pos_uint(hash_pos *pos)
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 @@ hash_remove_pos_pid(hash_pos *pos)
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 @@ hash_remove_pos_pid(hash_pos *pos)
ans = hi->value;
/* free up the space */
- key = hi->key;
- ;
ll_freeitem(li);
/* back up to previous item */
@@ -1593,7 +1586,6 @@ hash_remove_pos_pidthr(hash_pos *pos)
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 @@ hash_remove_pos_pidthr(hash_pos *pos)
ans = hi->value;
/* free up the space */
- key = hi->key;
- ;
ll_freeitem(li);
/* back up to previous item */
@@ -1932,7 +1922,6 @@ hash_remove_pos_lwpid(hash_pos *pos)
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 @@ hash_remove_pos_lwpid(hash_pos *pos)
ans = hi->value;
/* free up the space */
- key = hi->key;
- ;
ll_freeitem(li);
/* back up to previous item */
Index: src/external/bsd/top/dist/machine/m_netbsd.c
diff -u src/external/bsd/top/dist/machine/m_netbsd.c:1.17 src/external/bsd/top/dist/machine/m_netbsd.c:1.18
--- src/external/bsd/top/dist/machine/m_netbsd.c:1.17 Thu Jan 3 05:12:36 2013
+++ src/external/bsd/top/dist/machine/m_netbsd.c Sat Oct 19 23:02:27 2013
@@ -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 <[email protected]>
*
*
- * $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 @@ get_proc_info(struct system_info *si, st
int show_idle;
int show_system;
int show_uid;
- int show_command;
static struct handle handle;
@@ -627,7 +626,6 @@ get_proc_info(struct system_info *si, st
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 @@ get_lwp_info(struct system_info *si, str
int show_idle;
int show_system;
int show_uid;
- int show_command;
static struct handle handle;
@@ -739,7 +736,6 @@ get_lwp_info(struct system_info *si, str
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;