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/md5sum.c | |
parent | eaff43d5a8173b9c576dadb8d123e3348fb1b809 (diff) | |
download | coreutils-6c93bdeeaa8a322b76c48ffc17a2205f6c3f5271.tar.xz |
Remove anachronistic casts of xmalloc,
xrealloc, and xcalloc return values and of xrealloc's first argument.
Diffstat (limited to 'src/md5sum.c')
-rw-r--r-- | src/md5sum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/md5sum.c b/src/md5sum.c index 270f0110e..32ead0dc3 100644 --- a/src/md5sum.c +++ b/src/md5sum.c @@ -1,5 +1,5 @@ /* Compute MD5 or SHA1 checksum of files or strings - Copyright (C) 1995-2002 Free Software Foundation, Inc. + Copyright (C) 1995-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 @@ -524,7 +524,7 @@ main (int argc, char **argv) case 1: /* --string */ { if (string == NULL) - string = (char **) xmalloc ((argc - 1) * sizeof (char *)); + string = xmalloc ((argc - 1) * sizeof (char *)); if (optarg == NULL) optarg = ""; |