diff options
| author | Jim Meyering <jim@meyering.net> | 2003-04-11 10:51:56 +0000 |
|---|---|---|
| committer | Jim Meyering <jim@meyering.net> | 2003-04-11 10:51:56 +0000 |
| commit | 6c93bdeeaa8a322b76c48ffc17a2205f6c3f5271 (patch) | |
| tree | b96ee698e2bd8020d500f01cbf6d6efa743b8a69 /src/users.c | |
| parent | include xalloc.h (diff) | |
| download | coreutils-6c93bdeeaa8a322b76c48ffc17a2205f6c3f5271.tar.gz coreutils-6c93bdeeaa8a322b76c48ffc17a2205f6c3f5271.zip | |
Remove anachronistic casts of xmalloc,
xrealloc, and xcalloc return values and of xrealloc's first argument.
Diffstat (limited to 'src/users.c')
| -rw-r--r-- | src/users.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.c b/src/users.c index 341c5c06d..67f8f4110 100644 --- a/src/users.c +++ b/src/users.c @@ -1,5 +1,5 @@ /* GNU's users. - Copyright (C) 1992-2002 Free Software Foundation, Inc. + Copyright (C) 1992-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -58,7 +58,7 @@ list_entries_users (int n, const STRUCT_UTMP *this) int n_entries; n_entries = 0; - u = (char **) xmalloc (n * sizeof (u[0])); + u = xmalloc (n * sizeof (u[0])); for (i = 0; i < n; i++) { if (UT_USER (this) [0] |
