diff options
Diffstat (limited to 'viewres.c')
-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; |