diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-10 14:10:32 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-11 15:36:06 -0800 |
commit | 2ac6a7f029d8855fbb4e8024aab0511727ac3a67 (patch) | |
tree | e358d01442ad5e619d9f328a79c9309cf6ff6672 /indicators.c | |
parent | 8d85bd1e2f9473958b235caf7af9913b518f73dd (diff) |
Replace uFree() with direct free() calls
All these wrappers did was mess with types and add a test for
NULL pointers that isn't needed in C89 and later.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'indicators.c')
-rw-r--r-- | indicators.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/indicators.c b/indicators.c index 0e82d4a..995788b 100644 --- a/indicators.c +++ b/indicators.c @@ -415,7 +415,7 @@ CopyIndicatorMapDefs(XkbFileInfo * result, LEDInfo * leds, last = led; } else - uFree(led); + free(led); } else { @@ -431,7 +431,7 @@ CopyIndicatorMapDefs(XkbFileInfo * result, LEDInfo * leds, im->ctrls = led->ctrls; if (xkb->names != NULL) xkb->names->indicators[led->indicator - 1] = led->name; - uFree(led); + free(led); } } if (unboundRtrn != NULL) @@ -501,7 +501,7 @@ BindIndicators(XkbFileInfo * result, if (force) { unbound = next; - uFree(led); + free(led); } else { @@ -526,7 +526,7 @@ BindIndicators(XkbFileInfo * result, led->indicator = _LED_NotBound; if (force) { - uFree(led); + free(led); unbound = next; } else @@ -555,7 +555,7 @@ BindIndicators(XkbFileInfo * result, else unbound = next; led->defs.next = NULL; - uFree(led); + free(led); } } } @@ -568,7 +568,7 @@ BindIndicators(XkbFileInfo * result, for (led = unbound; led != NULL; led = next) { next = (LEDInfo *) led->defs.next; - uFree(led); + free(led); } } return True; |