diff options
| author | 2003-06-19 22:40:45 +0000 | |
|---|---|---|
| committer | 2003-06-19 22:40:45 +0000 | |
| commit | 3fc21ca4a43b0b6480c2dfa1cdd739e76dd9a6f5 (patch) | |
| tree | 8743945fbdade67559b043969e608c681df5662e /usr.bin/top/utils.h | |
| parent | use fseeko; millert ok (diff) | |
| download | wireguard-openbsd-3fc21ca4a43b0b6480c2dfa1cdd739e76dd9a6f5.tar.xz wireguard-openbsd-3fc21ca4a43b0b6480c2dfa1cdd739e76dd9a6f5.zip | |
o get rid of strecpy() and use strlcpy() and/or snprintf() instead.
o make itoa() just use snprintf()
o rename itoa7() to format_uid() and use snprintf()
o max username len is _PW_NAME_LEN, not 8
Diffstat (limited to 'usr.bin/top/utils.h')
| -rw-r--r-- | usr.bin/top/utils.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/top/utils.h b/usr.bin/top/utils.h index eada1f3149a..5c411f47267 100644 --- a/usr.bin/top/utils.h +++ b/usr.bin/top/utils.h @@ -1,4 +1,4 @@ -/* $OpenBSD: utils.h,v 1.5 2002/07/15 17:20:36 deraadt Exp $ */ +/* $OpenBSD: utils.h,v 1.6 2003/06/19 22:40:45 millert Exp $ */ /* * Top users/processes display for Unix @@ -32,9 +32,8 @@ int atoiwi(char *); char *itoa(int); -char *itoa7(int); +char *format_uid(uid_t); int digits(int); -char *strecpy(char *, char *); int string_index(char *, char **); char **argparse(char *, int *); int percentages(int, int *, long *, long *, long *); |
