summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-04-11 14:06:02 +0000
committerJim Meyering <jim@meyering.net>2003-04-11 14:06:02 +0000
commitbc076eac2fdc52218cffa0b9ce3cb76b7c3a8b89 (patch)
tree81b9535074fdbe5bb95c6345f99e4e4f91c01d35 /lib
parentdf80970dd5bd7a84951cfe9c351a8725145f047b (diff)
downloadcoreutils-bc076eac2fdc52218cffa0b9ce3cb76b7c3a8b89.tar.xz
Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values.
Diffstat (limited to 'lib')
-rw-r--r--lib/bumpalloc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bumpalloc.h b/lib/bumpalloc.h
index 1f55b9ad9..39ea7206e 100644
--- a/lib/bumpalloc.h
+++ b/lib/bumpalloc.h
@@ -1,5 +1,5 @@
/* BUMP_ALLOC macro - increase table allocation by one element.
- Copyright (C) 1990, 1991, 1993, 1998, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1990, 1991, 1993, 1998, 2000, 2003 Free Software Foundation, Inc.
François Pinard <pinard@iro.umontreal.ca>, 1990.
This program is free software; you can redistribute it and/or modify
@@ -54,9 +54,9 @@
if (((Count) & (~(~0 << (Exponent)))) == 0) \
{ \
if ((Count) == 0) \
- (Table) = (Type *) xmalloc ((1 << (Exponent)) * (Size)); \
+ (Table) = xmalloc ((1 << (Exponent)) * (Size)); \
else \
- (Table) = (Type *) \
+ (Table) = \
xrealloc ((Table), ((Count) + (1 << (Exponent))) * (Size)); \
} \
} \