diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2006-11-30 00:01:21 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2006-11-30 00:01:21 +0000 |
commit | e982c14bc34a48529ca0db1c016a768cce01e115 (patch) | |
tree | bdf201b23b9ec594b4e05704e2119b2e664b10a8 /user.c | |
parent | 53280ebcfd46a129f34d6853a093c3cb425a068a (diff) | |
download | mig-e982c14bc34a48529ca0db1c016a768cce01e115.tar.gz mig-e982c14bc34a48529ca0db1c016a768cce01e115.tar.bz2 mig-e982c14bc34a48529ca0db1c016a768cce01e115.zip |
2006-11-29 Thomas Schwinge <tschwinge@gnu.org>
Fix compiler, flex and bison warnings.
* error.c: Include <stdlib.h>.
* lexxer.h (yylex): Add declaration.
* migcom.c: Include <stdlib.h>.
(main): Set USER, SHEADER and IHEADER to `NULL' by default.
(myfclose): Add lost conversion specifications.
* parser.h (yyerror): Add declaration.
* routine.c (rtPrintArg, rtCheckRoutine): Add braces to avoid
ambiguousness.
* server.c (WriteSymTabEntries): Make NUM an `u_int'.
* user.c (WriteUserIndividual): Add a `default' case in a switch
statement and add lost conversion specifications.
* lexxer.l: Set option `nounput'.
* parser.y (%left): Change commas to spaces.
Diffstat (limited to 'user.c')
-rw-r--r-- | user.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1315,13 +1315,15 @@ WriteUserIndividual(const statement_t *stats) case skUImport: WriteImport(file, s->stFileName); break; + default: + break; } } WriteRoutine(file, stat->stRoutine); WriteEpilog(file); if (ferror(file) || fclose(file)) - fatal("fclose(): ", filename, + fatal("fclose(%s): %s", filename, unix_error_string(errno)); strfree(filename); } |