diff options
author | ache <ache@FreeBSD.org> | 2001-03-03 01:46:58 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-03-03 01:46:58 +0000 |
commit | 2c96c2d1775e08b05f1405f4555b497b14d6dbc4 (patch) | |
tree | 7e60b0cde63f7c63a85403bdd4899e9acee38bae /bin/ps/ps.c | |
parent | 1172de03441c7065530b581a78ba2b1403593c21 (diff) | |
download | FreeBSD-src-2c96c2d1775e08b05f1405f4555b497b14d6dbc4.zip FreeBSD-src-2c96c2d1775e08b05f1405f4555b497b14d6dbc4.tar.gz |
Small optimization: set use_ampm only when needed
Diffstat (limited to 'bin/ps/ps.c')
-rw-r--r-- | bin/ps/ps.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c index 7d5aaee..55fdc07 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -58,7 +58,6 @@ static const char rcsid[] = #include <errno.h> #include <fcntl.h> #include <kvm.h> -#include <langinfo.h> #include <limits.h> #include <locale.h> #include <nlist.h> @@ -83,7 +82,6 @@ int rawcpu; /* -C */ int sumrusage; /* -S */ int termwidth; /* width of screen (0 == infinity) */ int totwidth; /* calculated width of requested variables */ -int use_ampm; /* use AM/PM time */ static int needuser, needcomm, needenv; #if defined(LAZY_PS) @@ -131,7 +129,6 @@ main(argc, argv) char *nlistf, *memf, *swapf, errbuf[_POSIX2_LINE_MAX]; (void) setlocale(LC_ALL, ""); - use_ampm = (*nl_langinfo(T_FMT_AMPM) != '\0'); if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && |