diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-12-20 09:04:18 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-12-20 09:04:18 +0000 |
commit | cf410d393a2ab94c802e6bf156631635a7a8a783 (patch) | |
tree | 41a6d0053fcc47e9fe33e29400831c9e0a60fd27 /usr.bin/rcs/rcsdiff.c | |
parent | 299dea0fbb4b73be7a5131947708d340065da518 (diff) |
spread the use of fatal();
Diffstat (limited to 'usr.bin/rcs/rcsdiff.c')
-rw-r--r-- | usr.bin/rcs/rcsdiff.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/usr.bin/rcs/rcsdiff.c b/usr.bin/rcs/rcsdiff.c index 7af6398d1d0..ad19ddc1a8c 100644 --- a/usr.bin/rcs/rcsdiff.c +++ b/usr.bin/rcs/rcsdiff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsdiff.c,v 1.26 2005/12/10 19:44:36 niallo Exp $ */ +/* $OpenBSD: rcsdiff.c,v 1.27 2005/12/20 09:04:17 xsa Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -84,15 +84,11 @@ rcsdiff_main(int argc, char **argv) break; case 'r': if (rev == RCS_HEAD_REV) { - if ((rev = rcsnum_parse(rcs_optarg)) == NULL) { - cvs_log(LP_ERR, "bad revision number"); - exit(1); - } + if ((rev = rcsnum_parse(rcs_optarg)) == NULL) + fatal("bad revision number"); } else { - if ((rev2 = rcsnum_parse(rcs_optarg)) == NULL) { - cvs_log(LP_ERR, "bad revision number"); - exit(1); - } + if ((rev2 = rcsnum_parse(rcs_optarg)) == NULL) + fatal("bad revision number"); } break; case 'T': |