No need to cast to (char *)

This commit is contained in:
sin 2013-08-05 16:04:49 +01:00 committed by David Galos
parent d59c8eea36
commit 918269e057
1 changed files with 1 additions and 1 deletions

2
who.c
View File

@ -32,7 +32,7 @@ main(int argc, char **argv)
if (!(ufp = fopen(_PATH_UTMP, "r"))) {
eprintf("fopen:");
}
while(fread((char *)&usr, sizeof(usr), 1, ufp) == 1) {
while(fread(&usr, sizeof(usr), 1, ufp) == 1) {
if (!*usr.ut_name || !*usr.ut_line)
continue;
if (mflag && strcmp(usr.ut_line,