diff options
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r-- | usr.bin/rcs/date.y | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/rcs/date.y b/usr.bin/rcs/date.y index 6eca12eaacc..42984602e2d 100644 --- a/usr.bin/rcs/date.y +++ b/usr.bin/rcs/date.y @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: date.y,v 1.9 2010/07/29 18:52:45 ray Exp $ */ +/* $OpenBSD: date.y,v 1.10 2010/07/31 08:54:42 ray Exp $ */ /* ** Originally written by Steven M. Bellovin <smb@research.att.com> while @@ -867,10 +867,7 @@ date_parse(const char *p) Start += tod; } - /* Have to do *something* with a legitimate -1 so it's distinguishable - * from the error return value. (Alternately could set errno on error.) - */ - return (Start == -1) ? (0) : (Start); + return Start; } #if defined(TEST) |