Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/systat Remove SCCS workarounds. No binary change.



details:   https://anonhg.NetBSD.org/src/rev/57e067606dbe
branches:  trunk
changeset: 961364:57e067606dbe
user:      maya <maya%NetBSD.org@localhost>
date:      Sat Apr 17 08:34:27 2021 +0000

description:
Remove SCCS workarounds. No binary change.

diffstat:

 usr.bin/systat/ps.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (32 lines):

diff -r 9724f608e392 -r 57e067606dbe usr.bin/systat/ps.c
--- a/usr.bin/systat/ps.c       Sat Apr 17 08:06:58 2021 +0000
+++ b/usr.bin/systat/ps.c       Sat Apr 17 08:34:27 2021 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: ps.c,v 1.39 2020/08/26 10:56:01 simonb Exp $  */
+/*      $NetBSD: ps.c,v 1.40 2021/04/17 08:34:27 maya Exp $  */
 
 /*-
  * Copyright (c) 1999
@@ -45,7 +45,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ps.c,v 1.39 2020/08/26 10:56:01 simonb Exp $");
+__RCSID("$NetBSD: ps.c,v 1.40 2021/04/17 08:34:27 maya Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -340,11 +340,9 @@
        if (now == 0)
                time(&now);
        if (now - u_start.tv_sec < 24 * SECSPERHOUR) {
-               /* I *hate* SCCS... */
-               strftime(startstr, sizeof(startstr) - 1, "%l:%" "M%p", tp);
+               strftime(startstr, sizeof(startstr) - 1, "%l:%M%p", tp);
        } else if (now - u_start.tv_sec < 7 * SECSPERDAY) {
-               /* I *hate* SCCS... */
-               strftime(startstr, sizeof(startstr) - 1, "%a%" "I%p", tp);
+               strftime(startstr, sizeof(startstr) - 1, "%a%I%p", tp);
        } else  
                strftime(startstr, sizeof(startstr) - 1, "%e%b%y", tp);
 



Home | Main Index | Thread Index | Old Index