From 551167c6204fe544330422dcf3ef8f6bfa9fe643 Mon Sep 17 00:00:00 2001 From: schwarze Date: Sun, 5 Jan 2014 05:27:44 +0000 Subject: [PATCH] garbage collect unused global variable retval, forgotten in rev. 1.36 when removing timed(8) support; proofed by sobrado@ --- bin/date/date.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/date/date.c b/bin/date/date.c index 8a0988e8828..5cb0cd0f7e0 100644 --- a/bin/date/date.c +++ b/bin/date/date.c @@ -1,4 +1,4 @@ -/* $OpenBSD: date.c,v 1.41 2013/11/27 13:32:02 okan Exp $ */ +/* $OpenBSD: date.c,v 1.42 2014/01/05 05:27:44 schwarze Exp $ */ /* $NetBSD: date.c,v 1.11 1995/09/07 06:21:05 jtc Exp $ */ /* @@ -49,7 +49,7 @@ extern char *__progname; time_t tval; -int retval, jflag; +int jflag; int slidetime; static void setthetime(char *); @@ -141,7 +141,7 @@ main(int argc, char *argv[]) (void)strftime(buf, sizeof(buf), format, localtime(&tval)); (void)printf("%s\n", buf); - exit(retval); + exit(0); } #define ATOI2(ar) ((ar) += 2, ((ar)[-2] - '0') * 10 + ((ar)[-1] - '0')) -- 2.20.1