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

2
who.c
View File

@ -32,7 +32,7 @@ main(int argc, char **argv)
if (!(ufp = fopen(_PATH_UTMP, "r"))) { if (!(ufp = fopen(_PATH_UTMP, "r"))) {
eprintf("fopen:"); 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) if (!*usr.ut_name || !*usr.ut_line)
continue; continue;
if (mflag && strcmp(usr.ut_line, if (mflag && strcmp(usr.ut_line,