From a0b8fdd90a8c168ef0fb82fe094a29efc130a4ae Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 6 Apr 1996 01:42:09 +0000 Subject: For nonexisten time use proper diagnostic instead of bad format and usage --- bin/date/date.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/date') diff --git a/bin/date/date.c b/bin/date/date.c index c842ae9..12261be 100644 --- a/bin/date/date.c +++ b/bin/date/date.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: date.c,v 1.5 1995/08/05 23:08:17 ache Exp $ + * $Id: date.c,v 1.6 1995/10/23 20:26:53 ache Exp $ */ #ifndef lint @@ -210,7 +210,7 @@ setthetime(p) /* convert broken-down time to GMT clock time */ if ((tval = mktime(lt)) == -1) - badformat(); + errx(1, "nonexistent time"); /* set the time */ if (nflag || netsettime(tval)) { -- cgit v1.1