summaryrefslogtreecommitdiff
path: root/xkbprint.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-27 20:30:20 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-27 20:30:20 -0700
commitcefec39d93846c2d034be9a89f48466831eddde6 (patch)
tree8acb764330433c0f539290d804ff2c9044c11c57 /xkbprint.c
parentab92831be0e862622105f015fe8c390715d2aae9 (diff)
Replace custom uAlloc/uCalloc with plain malloc/calloc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xkbprint.c')
-rw-r--r--xkbprint.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/xkbprint.c b/xkbprint.c
index 3b55fbd..41ebec3 100644
--- a/xkbprint.c
+++ b/xkbprint.c
@@ -421,7 +421,7 @@ parseArgs(int argc, char *argv[])
FILE *file = NULL;
if (outputFile == NULL) {
- outputFile = uAlloc(strlen(outputFont) + 5);
+ outputFile = malloc(strlen(outputFont) + 5);
sprintf(outputFile, "%s.pfa", outputFont);
}
else if (uStringEqual(outputFile, "-"))
@@ -484,10 +484,10 @@ parseArgs(int argc, char *argv[])
outputFormat = WANT_PS_FILE;
if ((outputFile == NULL) && (inputFile != NULL) &&
uStringEqual(inputFile, "-")) {
- int len;
+ size_t len;
len = strlen("stdin.eps") + 2;
- outputFile = uTypedCalloc(len, char);
+ outputFile = calloc(len, sizeof(char));
if (outputFile == NULL) {
uInternalError("Cannot allocate space for output file name\n");
@@ -500,7 +500,7 @@ parseArgs(int argc, char *argv[])
sprintf(outputFile, "stdin.ps");
}
else if ((outputFile == NULL) && (inputFile != NULL)) {
- int len;
+ size_t len;
char *base, *ext;
base = strrchr(inputFile, '/');
@@ -510,7 +510,7 @@ parseArgs(int argc, char *argv[])
base++;
len = strlen(base) + strlen("eps") + 2;
- outputFile = uTypedCalloc(len, char);
+ outputFile = calloc(len, sizeof(char));
if (outputFile == NULL) {
uInternalError("Cannot allocate space for output file name\n");
@@ -533,7 +533,7 @@ parseArgs(int argc, char *argv[])
}
}
else if (outputFile == NULL) {
- int len;
+ size_t len;
char *ch, *name, buf[128];
if (inDpyName[0] == ':')
@@ -542,7 +542,7 @@ parseArgs(int argc, char *argv[])
name = inDpyName;
len = strlen(name) + strlen("eps") + 2;
- outputFile = uTypedCalloc(len, char);
+ outputFile = calloc(len, sizeof(char));
if (outputFile == NULL) {
uInternalError("Cannot allocate space for output file name\n");