sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 918269e057952cad6462417fad523390f5805647
parent d59c8eea362026586d4faadb902a5b6f400981fe
Author: sin <sin@2f30.org>
Date:   Mon,  5 Aug 2013 16:04:49 +0100

No need to cast to (char *)

Diffstat:
Mwho.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/who.c b/who.c @@ -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,