diff options
author | dcs <dcs@FreeBSD.org> | 2000-07-09 15:12:28 +0000 |
---|---|---|
committer | dcs <dcs@FreeBSD.org> | 2000-07-09 15:12:28 +0000 |
commit | c6e22d497b489504107cff9aef41cf62a9e9f6eb (patch) | |
tree | 9e89549d04975d2741e70cf579821f8898c07c31 /lib/libc/regex/regcomp.c | |
parent | 2845a5b5418b09c0de782a2383788f97a9683a35 (diff) | |
download | FreeBSD-src-c6e22d497b489504107cff9aef41cf62a9e9f6eb.zip FreeBSD-src-c6e22d497b489504107cff9aef41cf62a9e9f6eb.tar.gz |
Add some casts here and there.
Diffstat (limited to 'lib/libc/regex/regcomp.c')
-rw-r--r-- | lib/libc/regex/regcomp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c index f19e097..e0afdcc 100644 --- a/lib/libc/regex/regcomp.c +++ b/lib/libc/regex/regcomp.c @@ -1942,7 +1942,7 @@ struct re_guts *g; if (p->error != 0) return; - g->charjump = malloc((NC + 1) * sizeof(int)); + g->charjump = (int*) malloc((NC + 1) * sizeof(int)); if (g->charjump == NULL) /* Not a fatal error */ return; /* Adjust for signed chars, if necessary */ @@ -1993,13 +1993,13 @@ struct re_guts *g; if (p->error != 0) return; - pmatches = malloc(g->mlen * sizeof(unsigned int)); + pmatches = (int*) malloc(g->mlen * sizeof(unsigned int)); if (pmatches == NULL) { g->matchjump = NULL; return; } - g->matchjump = malloc(g->mlen * sizeof(unsigned int)); + g->matchjump = (int*) malloc(g->mlen * sizeof(unsigned int)); if (g->matchjump == NULL) /* Not a fatal error */ return; |