From: Jim Meyering Date: Fri, 11 Apr 2003 12:15:21 +0000 (+0000) Subject: Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values. X-Git-Tag: v5.0.1~724 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9def4be367ef67f9e5064ac5a0d20cf5e41f4285;p=thirdparty%2Fcoreutils.git Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values. --- diff --git a/lib/readutmp.c b/lib/readutmp.c index d032675e6f..a623f2c1ce 100644 --- a/lib/readutmp.c +++ b/lib/readutmp.c @@ -116,7 +116,7 @@ read_utmp (const char *filename, int *n_entries, STRUCT_UTMP **utmp_buf) fstat (fileno (utmp), &file_stats); size = file_stats.st_size; if (size > 0) - buf = (STRUCT_UTMP *) xmalloc (size); + buf = xmalloc (size); else { fclose (utmp);