diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-09-02 03:04:40 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-09-02 03:04:40 -0400 |
commit | c8f06f45d59bf1008e98497481629edc77993300 (patch) | |
tree | 8fb2b2983abc8b84d1eb5f3f188026a119b2eb3d /tools/scan_includes.c | |
parent | 0d1a029e818c295b7cd04bef6527a20f3178f439 (diff) |
Use an `error_exit` macro for tools
Diffstat (limited to 'tools/scan_includes.c')
-rw-r--r-- | tools/scan_includes.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/scan_includes.c b/tools/scan_includes.c index a6351f7e7..78c0cf27e 100644 --- a/tools/scan_includes.c +++ b/tools/scan_includes.c @@ -9,8 +9,7 @@ void scan_file(const char *filename, bool strict) { FILE *f = fopen(filename, "rb"); if (!f) { if (strict) { - fprintf(stderr, "Could not open file \"%s\": %s\n", filename, strerror(errno)); - exit(1); + error_exit("Could not open file \"%s\": %s\n", filename, strerror(errno)); } else { return; } |