summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/annotate.c
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2006-01-27 15:26:38 +0000
committerxsa <xsa@openbsd.org>2006-01-27 15:26:38 +0000
commit3956f8dacdf6781dcdb8afb283713ec9b5d75191 (patch)
tree3481bb89fd868309403fb6dab98f15f789deaf71 /usr.bin/cvs/annotate.c
parentUse letoh32 to print out configuration descriptors in debug functions. Now (diff)
downloadwireguard-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.c8
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");