diff options
author | 2006-01-27 15:26:38 +0000 | |
---|---|---|
committer | 2006-01-27 15:26:38 +0000 | |
commit | 3956f8dacdf6781dcdb8afb283713ec9b5d75191 (patch) | |
tree | 3481bb89fd868309403fb6dab98f15f789deaf71 /usr.bin/cvs/annotate.c | |
parent | Use letoh32 to print out configuration descriptors in debug functions. Now (diff) | |
download | wireguard-openbsd-3956f8dacdf6781dcdb8afb283713ec9b5d75191.tar.xz wireguard-openbsd-3956f8dacdf6781dcdb8afb283713ec9b5d75191.zip |
more errors handling cleanup;
Diffstat (limited to 'usr.bin/cvs/annotate.c')
-rw-r--r-- | usr.bin/cvs/annotate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/cvs/annotate.c b/usr.bin/cvs/annotate.c index 797282ebf69..aa80ec8d8be 100644 --- a/usr.bin/cvs/annotate.c +++ b/usr.bin/cvs/annotate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: annotate.c,v 1.27 2006/01/02 08:11:56 xsa Exp $ */ +/* $OpenBSD: annotate.c,v 1.28 2006/01/27 15:26:38 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -170,9 +170,9 @@ cvs_annotate_local(CVSFILE *cf, void *arg) cvs_rcs_getpath(cf, rcspath, sizeof(rcspath)); - rf = rcs_open(rcspath, RCS_READ); - if (rf == NULL) - return (CVS_EX_DATA); + if ((rf = rcs_open(rcspath, RCS_READ)) == NULL) + fatal("cvs_annotate_local: rcs_open `%s': %s", rcspath, + strerror(rcs_errno)); cvs_printf("Annotations for %s", cf->cf_name); cvs_printf("\n***************\n"); |