diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-08-08 14:23:34 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-08-08 14:23:34 +0200 |
commit | fd06b1d4662cecbfa90f559305698f318398371b (patch) | |
tree | b93327f00af5b9a9e822602e69a440931010cbbc | |
parent | 914b78a58f5dc668bbe6106e366a3bb18813cfbb (diff) | |
download | mblaze-fd06b1d4662cecbfa90f559305698f318398371b.tar.gz mblaze-fd06b1d4662cecbfa90f559305698f318398371b.tar.xz mblaze-fd06b1d4662cecbfa90f559305698f318398371b.zip |
seq: exit with 2 on fatal parsing error
-rw-r--r-- | seq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/seq.c b/seq.c index d30e4ee..461a484 100644 --- a/seq.c +++ b/seq.c @@ -189,7 +189,7 @@ parse_relnum(char *a, long cur, long last, long *out) d = strtol(a, &b, 10); if (errno != 0) { perror("strtol"); - exit(1); + exit(2); } } |