summaryrefslogtreecommitdiffstats
path: root/bin/ps/ps.h
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2004-06-23 23:48:09 +0000
committergad <gad@FreeBSD.org>2004-06-23 23:48:09 +0000
commit30666d1f0f431b581eeacc45735ff41d85d27c23 (patch)
tree42f4c0ba023a1c380ef10b9c78d4a46eb691734d /bin/ps/ps.h
parent8ab36c09a858cbd52cbf9795162660a1ff1a423c (diff)
downloadFreeBSD-src-30666d1f0f431b581eeacc45735ff41d85d27c23.zip
FreeBSD-src-30666d1f0f431b581eeacc45735ff41d85d27c23.tar.gz
Change "struct varent" to use the standard queue(8) macros, instead of
using it's own version of the same basic algorithm. Submitted by: part by Cyrille Lefevre, part of it done by me
Diffstat (limited to 'bin/ps/ps.h')
-rw-r--r--bin/ps/ps.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/ps/ps.h b/bin/ps/ps.h
index 817719d..03adc0a 100644
--- a/bin/ps/ps.h
+++ b/bin/ps/ps.h
@@ -30,6 +30,8 @@
* $FreeBSD$
*/
+#include <sys/queue.h>
+
#define UNLIMITED 0 /* unlimited terminal width */
enum type { CHAR, UCHAR, SHORT, USHORT, INT, UINT, LONG, ULONG, KPTR, PGTOK };
@@ -44,8 +46,8 @@ typedef struct kinfo {
/* Variables. */
typedef struct varent {
+ STAILQ_ENTRY(varent) next_ve;
const char *header;
- struct varent *next;
struct var *var;
} VARENT;
OpenPOWER on IntegriCloud