the unix epoch is equally absurd. Just return Start for now. We may
add overflow checks in the future.
OK xsa nicm
%{
-/* $OpenBSD: date.y,v 1.21 2010/07/29 18:52:45 ray Exp $ */
+/* $OpenBSD: date.y,v 1.22 2010/07/31 08:54:42 ray Exp $ */
/*
** Originally written by Steven M. Bellovin <smb@research.att.com> while
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)
%{
-/* $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
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)