Use error to report errors in options.c
diff --git a/options.c b/options.c
index 7cb5f4a..f53a474 100644
--- a/options.c
+++ b/options.c
@@ -510,8 +510,8 @@
opt_i++;
break;
case 'l':
- assert(!"-l support not yet implemented");
- abort();
+ //assert(!"-l support not yet implemented");
+ //abort();
break;
case 'L':
libcalls = 0;
@@ -522,9 +522,8 @@
case 'o':
options.output = fopen(optarg, "w");
if (!options.output) {
- fprintf(stderr,
- "Can't open %s for output: %s\n",
- optarg, strerror(errno));
+ error(0, errno,
+ "can't open %s for writing", optarg);
exit(1);
}
setvbuf(options.output, (char *)NULL, _IOLBF, 0);