Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values.

This commit is contained in:
Jim Meyering committed 2003-04-11 12:15:21 +00:00
1 parent 2b64c3929a
commit 9def4be367
1 file changed
+1 -1
+1 -1
View File
@@ -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);