=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/Attic/username.c,v retrieving revision 1.18 retrieving revision 1.19 diff -c -r1.18 -r1.19 *** src/usr.bin/top/Attic/username.c 2018/09/13 15:23:32 1.18 --- src/usr.bin/top/Attic/username.c 2018/09/16 02:44:06 1.19 *************** *** 1,4 **** ! /* $OpenBSD: username.c,v 1.18 2018/09/13 15:23:32 millert Exp $ */ /* * Top users/processes display for Unix --- 1,4 ---- ! /* $OpenBSD: username.c,v 1.19 2018/09/16 02:44:06 millert Exp $ */ /* * Top users/processes display for Unix *************** *** 48,59 **** } uid_t ! userid(char *username) { ! struct passwd *pwd; ! if ((pwd = getpwnam(username)) == NULL) ! return ((uid_t)-1); ! ! return (pwd->pw_uid); } --- 48,56 ---- } uid_t ! userid(const char *username) { ! uid_t uid; ! return uid_from_user(username, &uid); }