[PATCH 2/3] No need to cast to (char *)

From: sin <sin_AT_2f30.org>
Date: Mon, 5 Aug 2013 16:04:49 +0100

---
 who.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/who.c b/who.c
index 756363e..823142b 100644
--- a/who.c
+++ b/who.c
_AT_@ -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,
-- 
1.8.3.4
--gKMricLos+KVdGMg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="0003-Ignore-tilde-in-ut_line.patch"
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Tue Aug 06 2013 - 11:00:03 CEST