diff options
author | Juan Cespedes <cespedes@debian.org> | 2008-12-16 19:50:16 +0100 |
---|---|---|
committer | Juan Cespedes <cespedes@debian.org> | 2008-12-16 19:50:16 +0100 |
commit | b65bdc581f1ff747a53a1e2494d1cebb56453cb2 (patch) | |
tree | 1d9efb3aa1ed34d5dcdbbfce408e2e6727ab21ad /ltrace.c | |
parent | ce377d567ccc0b14693619b69ebe0ac6deb0ba90 (diff) | |
download | ltrace-b65bdc581f1ff747a53a1e2494d1cebb56453cb2.tar.gz |
More fields to struct "options"
Substituted opt_* with options.indent, options.output
Diffstat (limited to 'ltrace.c')
-rw-r--r-- | ltrace.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -50,9 +50,9 @@ static void signal_exit(int sig) { exiting = 1; debug(1, "Received interrupt signal; exiting..."); - if (opt_o) { - fclose(output); - opt_o = 0; + if (options.output) { + fclose(options.output); + options.output = NULL; } signal(SIGINT, SIG_IGN); signal(SIGTERM, SIG_IGN); @@ -74,9 +74,9 @@ normal_exit(void) { if (opt_c) { show_summary(); } - if (opt_o) { - fclose(output); - opt_o = 0; + if (options.output) { + fclose(options.output); + options.output = NULL; } } |