summaryrefslogtreecommitdiff
path: root/keycodes.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-10 14:10:32 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-11 15:36:06 -0800
commit2ac6a7f029d8855fbb4e8024aab0511727ac3a67 (patch)
treee358d01442ad5e619d9f328a79c9309cf6ff6672 /keycodes.c
parent8d85bd1e2f9473958b235caf7af9913b518f73dd (diff)
downloadxorg-app-xkbcomp-2ac6a7f029d8855fbb4e8024aab0511727ac3a67.tar.gz
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 'keycodes.c')
-rw-r--r--keycodes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/keycodes.c b/keycodes.c
index b6efdd1..9603376 100644
--- a/keycodes.c
+++ b/keycodes.c
@@ -206,7 +206,7 @@ AddIndicatorName(KeyNamesInfo * info, IndicatorNameInfo * new)
}
}
}
- uFree(old);
+ free(old);
}
}
}
@@ -271,7 +271,7 @@ static void
ClearKeyNamesInfo(KeyNamesInfo * info)
{
if (info->name != NULL)
- uFree(info->name);
+ free(info->name);
info->name = NULL;
info->computedMax = info->explicitMax = info->explicitMin = -1;
info->computedMin = 256;
@@ -518,7 +518,7 @@ HandleIncludeKeycodes(IncludeStmt * stmt, XkbDescPtr xkb, KeyNamesInfo * info)
if (stmt->stmt != NULL)
{
if (included.name != NULL)
- uFree(included.name);
+ free(included.name);
included.name = stmt->stmt;
stmt->stmt = NULL;
}