diff options
author | bapt <bapt@FreeBSD.org> | 2012-09-14 21:17:53 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-09-14 21:17:53 +0000 |
commit | a06756dafd4a9ec683a791e05584f7f4184c6ec6 (patch) | |
tree | 9c923f8191c691c871a9764cfcfe3137f0e3da40 /contrib/byacc/main.c | |
parent | f75087e0ad660b033e93958dddd3513be0401d53 (diff) | |
download | FreeBSD-src-a06756dafd4a9ec683a791e05584f7f4184c6ec6.zip FreeBSD-src-a06756dafd4a9ec683a791e05584f7f4184c6ec6.tar.gz |
update to version 20120526
Diffstat (limited to 'contrib/byacc/main.c')
-rw-r--r-- | contrib/byacc/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/byacc/main.c b/contrib/byacc/main.c index 0405a99..bcd7d50 100644 --- a/contrib/byacc/main.c +++ b/contrib/byacc/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.38 2012/01/14 01:01:15 tom Exp $ */ +/* $Id: main.c,v 1.39 2012/05/26 00:50:20 tom Exp $ */ #include <signal.h> #include <unistd.h> /* for _exit() */ @@ -163,7 +163,7 @@ done(int k) } static void -onintr(__unused int sig) +onintr(int sig GCC_UNUSED) { got_intr = 1; done(EXIT_FAILURE); @@ -367,7 +367,7 @@ allocate(size_t n) } #define CREATE_FILE_NAME(dest, suffix) \ - dest = MALLOC(len + strlen(suffix) + 1); \ + dest = TMALLOC(char, len + strlen(suffix) + 1); \ NO_SPACE(dest); \ strcpy(dest, file_prefix); \ strcpy(dest + len, suffix) @@ -398,7 +398,7 @@ create_file_names(void) if (prefix != NULL) { len = (size_t) (prefix - output_file_name); - file_prefix = (char *)MALLOC(len + 1); + file_prefix = TMALLOC(char, len + 1); NO_SPACE(file_prefix); strncpy(file_prefix, output_file_name, len)[len] = 0; } |