diff options
author | Petr Machata <pmachata@redhat.com> | 2012-04-17 00:27:18 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-04-19 01:53:57 +0200 |
commit | 5126815116a58e4692bcddb63dc3a3f855003cb6 (patch) | |
tree | 7318de66e4a6df0fee1db213571ab0995846983c /options.c | |
parent | aca1efb1aa400d27cadcee4cf62ab21999f10f0c (diff) | |
download | ltrace-5126815116a58e4692bcddb63dc3a3f855003cb6.tar.gz |
Use error to report errors in options.c
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -510,8 +510,8 @@ process_options(int argc, char **argv) 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 @@ process_options(int argc, char **argv) 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); |