aboutsummaryrefslogtreecommitdiff
path: root/user.c
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-11-30 00:01:21 +0000
committerThomas Schwinge <tschwinge@gnu.org>2006-11-30 00:01:21 +0000
commite982c14bc34a48529ca0db1c016a768cce01e115 (patch)
treebdf201b23b9ec594b4e05704e2119b2e664b10a8 /user.c
parent53280ebcfd46a129f34d6853a093c3cb425a068a (diff)
downloadmig-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/user.c b/user.c
index 8d0a2ab..16d4c02 100644
--- a/user.c
+++ b/user.c
@@ -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);
}