summaryrefslogtreecommitdiff
path: root/viewres.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-14 11:54:50 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-14 12:09:57 -0700
commit49c9ace57166a4014fafa36ff5cb373846a9b4cf (patch)
tree0219618c16eeacb00519e5896b3469c33ce27e4c /viewres.c
parentf03145544e4390e0bcd462ac5c154a4c474c46ee (diff)
Remove obsolete casts on calloc & malloc calls
Not needed in C89 and later Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'viewres.c')
-rw-r--r--viewres.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/viewres.c b/viewres.c
index 6a764a7..cc76fbf 100644
--- a/viewres.c
+++ b/viewres.c
@@ -299,9 +299,7 @@ set_resource_labels(XmuWidgetNode *node)
ViewresData *d = VData(node);
if (!d->resource_labels) {
- d->resource_labels =
- (const char **) calloc((unsigned) d->nnew * 3,
- (unsigned) sizeof(const char *));
+ d->resource_labels = calloc(d->nnew * 3, sizeof(const char *));
if (!d->resource_labels)
return FALSE;
}
@@ -338,7 +336,7 @@ set_resource_labels(XmuWidgetNode *node)
static ViewresData *
create_viewres_data(XmuWidgetNode *node)
{
- ViewresData *d = (ViewresData *) malloc((unsigned) sizeof(ViewresData));
+ ViewresData *d = malloc(sizeof(ViewresData));
if (d) {
d->resource_labels = NULL;