Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/time use strpct from libutil.



details:   https://anonhg.NetBSD.org/src/rev/b1dd21412b87
branches:  trunk
changeset: 768868:b1dd21412b87
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Aug 28 08:24:42 2011 +0000

description:
use strpct from libutil.

diffstat:

 usr.bin/time/Makefile |  9 +++++----
 usr.bin/time/time.c   |  9 ++++-----
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (61 lines):

diff -r 3cff62c92c09 -r b1dd21412b87 usr.bin/time/Makefile
--- a/usr.bin/time/Makefile     Sun Aug 28 08:20:58 2011 +0000
+++ b/usr.bin/time/Makefile     Sun Aug 28 08:24:42 2011 +0000
@@ -1,15 +1,16 @@
-#      $NetBSD: Makefile,v 1.8 2011/08/17 13:29:39 christos Exp $
+#      $NetBSD: Makefile,v 1.9 2011/08/28 08:24:42 christos Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/6/93
 
 .include <bsd.own.mk>
 
 CPPFLAGS+=     -DNOT_CSH
 CPPFLAGS+=     -I. -I${NETBSDSRCDIR}/bin
-SRCS=  time.c strpct.c xtime.c
+SRCS=  time.c xtime.c
 PROG=  time
 
-COPTS.strpct.c += -Wno-format-nonliteral
-
 .PATH: ${NETBSDSRCDIR}/bin/csh
 
+LDADD+=-lutil
+DPADD+=${LIBUTIL}
+
 .include <bsd.prog.mk>
diff -r 3cff62c92c09 -r b1dd21412b87 usr.bin/time/time.c
--- a/usr.bin/time/time.c       Sun Aug 28 08:20:58 2011 +0000
+++ b/usr.bin/time/time.c       Sun Aug 28 08:24:42 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: time.c,v 1.19 2008/07/21 14:19:26 lukem Exp $  */
+/*     $NetBSD: time.c,v 1.20 2011/08/28 08:24:42 christos Exp $       */
 
 /*
  * Copyright (c) 1987, 1988, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)time.c     8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: time.c,v 1.19 2008/07/21 14:19:26 lukem Exp $");
+__RCSID("$NetBSD: time.c,v 1.20 2011/08/28 08:24:42 christos Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -56,8 +56,7 @@
 
 #include "ext.h"
 
-int            main(int, char **);
-static void    usage(void);
+__dead static void     usage(void);
 static void    prl(long, const char *);
 static void    prtv(const char *, const char *, const struct timeval *,
     const char *);
@@ -174,7 +173,7 @@
 }
 
 static void
-usage()
+usage(void)
 {
 
        (void)fprintf(stderr, "usage: %s [-clp] utility [argument ...]\n",



Home | Main Index | Thread Index | Old Index