diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-18 10:28:21 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-18 10:28:21 -0700 |
commit | c2e232e6915356eba3edf2efea99720746694c52 (patch) | |
tree | 405691284d85ae87a5261b43c950d26af102d17a /src/icons.c | |
parent | 58f3c3b8d518786764f45ac2be1f1f0850129125 (diff) |
Stop casting return values from malloc & calloc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/icons.c')
-rw-r--r-- | src/icons.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/icons.c b/src/icons.c index ad99888..617a1f7 100644 --- a/src/icons.c +++ b/src/icons.c @@ -58,7 +58,7 @@ splitEntry (IconEntry *ie, int grav1, int grav2, int w, int h) if (w != ie->w) splitEntry (ie, grav2, grav1, w, ie->h); if (h != ie->h) { - new = (IconEntry *)malloc (sizeof (IconEntry)); + new = malloc (sizeof (IconEntry)); new->twm_win = 0; new->used = 0; new->next = ie->next; @@ -79,7 +79,7 @@ splitEntry (IconEntry *ie, int grav1, int grav2, int w, int h) if (h != ie->h) splitEntry (ie, grav2, grav1, ie->w, h); if (w != ie->w) { - new = (IconEntry *)malloc (sizeof (IconEntry)); + new = malloc (sizeof (IconEntry)); new->twm_win = 0; new->used = 0; new->next = ie->next; @@ -266,7 +266,7 @@ AddIconRegion(char *geom, int grav1, int grav2, int stepx, int stepy) IconRegion *ir; int mask; - ir = (IconRegion *)malloc(sizeof(IconRegion)); + ir = malloc(sizeof(IconRegion)); ir->next = NULL; if (Scr->LastRegion) Scr->LastRegion->next = ir; @@ -292,7 +292,7 @@ AddIconRegion(char *geom, int grav1, int grav2, int stepx, int stepy) if (mask & YNegative) ir->y += Scr->MyDisplayHeight - ir->h; - ir->entries = (IconEntry *)malloc(sizeof(IconEntry)); + ir->entries = malloc(sizeof(IconEntry)); ir->entries->next = 0; ir->entries->x = ir->x; ir->entries->y = ir->y; |