Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/miscutils/last_fancy.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/miscutils/last_fancy.c
r2725 r3232 9 9 10 10 #include "libbb.h" 11 #include <utmp.h>12 11 13 12 /* NB: ut_name and ut_user are the same field, use only one name (ut_user) … … 95 94 96 95 printf(HEADER_FORMAT, 97 98 99 100 101 102 103 104 96 ut->ut_user, 97 ut->ut_line, 98 show_wide ? INET6_ADDRSTRLEN : INET_ADDRSTRLEN, 99 show_wide ? INET6_ADDRSTRLEN : INET_ADDRSTRLEN, 100 ut->ut_host, 101 login_time, 102 logout_str, 103 duration_str); 105 104 } 106 105 … … 163 162 time_t down_time; 164 163 int file; 165 unsigned opt;166 164 smallint going_down; 167 165 smallint boot_down; 168 166 169 opt =getopt32(argv, "Wf:" /* "H" */, &filename);167 /*opt =*/ getopt32(argv, "Wf:" /* "H" */, &filename); 170 168 #ifdef BUT_UTIL_LINUX_LAST_HAS_NO_SUCH_OPT 171 169 if (opt & LAST_OPT_H) {
Note:
See TracChangeset
for help on using the changeset viewer.