From 31789a81d5751acaaf373e8ede2932208161f869 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 19 Jun 2007 14:43:17 +0000 Subject: top,ps: 'stringify' tty only when needed. -60 bytes. --- include/libbb.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 999caae..9ca5653 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -847,10 +847,9 @@ typedef struct { unsigned sid; unsigned uid; unsigned gid; + unsigned tty_major,tty_minor; char state[4]; - char tty_str[8]; /* "maj,min" or "?" */ - /* basename of executable in exec(2), read from /proc/N/stat, */ - /* size from sizeof(task_struct.comm) in /usr/include/linux/sched.h */ + /* basename of executable in exec(2), read from /proc/N/stat */ char comm[COMM_LEN]; /* user/group? - use passwd/group parsing functions */ } procps_status_t; -- cgit v1.1