diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2008-03-01 20:03:57 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2008-03-01 20:03:57 +0000 |
commit | e5f2cf21623ce053a57222c328a376b878dda387 (patch) | |
tree | ef88506e468dd28388b182ac295e9446efb7caf9 /usr.bin/cvs/rcsnum.c | |
parent | 65d9117dbc0f8750434bde7f29449a9e2223d637 (diff) |
goodbye rcs_errno - we didnt use you and you wont be missed
Diffstat (limited to 'usr.bin/cvs/rcsnum.c')
-rw-r--r-- | usr.bin/cvs/rcsnum.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/cvs/rcsnum.c b/usr.bin/cvs/rcsnum.c index 62bf2b2e7d7..db74093c87e 100644 --- a/usr.bin/cvs/rcsnum.c +++ b/usr.bin/cvs/rcsnum.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsnum.c,v 1.51 2008/02/09 14:03:20 joris Exp $ */ +/* $OpenBSD: rcsnum.c,v 1.52 2008/03/01 20:03:56 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -82,8 +82,6 @@ rcsnum_parse(const char *str) if (rcsnum_aton(str, &ep, num) < 0 || *ep != '\0') { rcsnum_free(num); num = NULL; - if (*ep != '\0') - rcs_errno = RCS_ERR_BADNUM; } return (num); @@ -242,10 +240,8 @@ rcsnum_aton(const char *str, char **ep, RCSNUM *nump) break; if (*sp == '.') { - if (nump->rn_len >= RCSNUM_MAXLEN - 1) { - rcs_errno = RCS_ERR_BADNUM; + if (nump->rn_len >= RCSNUM_MAXLEN - 1) goto rcsnum_aton_failed; - } nump->rn_len++; nump->rn_id = xrealloc(nump->rn_id, |