mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values.
This commit is contained in:
1 parent
2b64c3929a
commit
9def4be367
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user