diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-14 11:54:50 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-14 12:09:57 -0700 |
commit | 49c9ace57166a4014fafa36ff5cb373846a9b4cf (patch) | |
tree | 0219618c16eeacb00519e5896b3469c33ce27e4c | |
parent | f03145544e4390e0bcd462ac5c154a4c474c46ee (diff) |
Remove obsolete casts on calloc & malloc calls
Not needed in C89 and later
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | viewres.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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; |