diff options
author | Jim Meyering <meyering@redhat.com> | 2009-10-30 21:28:53 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-10-30 21:28:53 +0100 |
commit | 05ce774b82ca6f81cb10e4cc3514b38ad568d6e0 (patch) | |
tree | d9e57731f3cbfc07340af8a55d01718c001474c5 /libidu/idwrite.c | |
parent | 926d89efdc7f4c578723d71de210aaafaf8bbae3 (diff) | |
download | idutils-05ce774b82ca6f81cb10e4cc3514b38ad568d6e0.tar.gz idutils-05ce774b82ca6f81cb10e4cc3514b38ad568d6e0.tar.bz2 idutils-05ce774b82ca6f81cb10e4cc3514b38ad568d6e0.zip |
build: accommodate new syntax-check test
Use EXIT_FAILURE and EXIT_SUCCESS, not 1 and 0.
Apply these commands:
perl -pi -e 's/\berror \(1,/error (EXIT_FAILURE,/' \
$(git grep -l '\<error (1,')
perl -pi -e 's/\bexit \(1\)/exit (EXIT_FAILURE)/' \
$(git grep -l '\<exit (1)')
perl -pi -e 's/\bexit \(0\)/exit (EXIT_SUCCESS)/' \
$(git grep -l '\<exit (0)')
* libidu/idread.c (read_id_file, maybe_read_id_file, io_read):
* libidu/idu-hash.c (hash_init):
* libidu/idwrite.c (io_write):
* libidu/scanners.c (parse_language_map, parse_language_map_file):
(read_language_map_file):
* libidu/walker.c (include_languages, exclude_languages):
(get_current_dir_link):
* src/fid.c (usage, help_me, main):
* src/fnid.c (usage, help_me, main):
* src/lid.c (usage, help_me, main, report_grep, report_edit):
(query_regexp):
* src/mkid.c (main, assert_writeable, write_id_file):
* src/xtokid.c (help_me):
Diffstat (limited to 'libidu/idwrite.c')
-rw-r--r-- | libidu/idwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libidu/idwrite.c b/libidu/idwrite.c index 7771d34..0e0c593 100644 --- a/libidu/idwrite.c +++ b/libidu/idwrite.c @@ -155,7 +155,7 @@ io_write (FILE *output_FILE, void *addr, unsigned int size, int io_type) putc (*(unsigned char *)addr, output_FILE); break; default: - error (1, 0, _("unsupported size in io_write (): %d"), size); + error (EXIT_FAILURE, 0, _("unsupported size in io_write (): %d"), size); } } else if (io_type == IO_TYPE_STR) |