Source-Changes-HG archive

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

[src/trunk]: src/bin/ps Remove SCCS workaround. No binary change.



details:   https://anonhg.NetBSD.org/src/rev/6405583cad42
branches:  trunk
changeset: 378566:6405583cad42
user:      maya <maya%NetBSD.org@localhost>
date:      Sat Apr 17 08:35:33 2021 +0000

description:
Remove SCCS workaround. No binary change.

diffstat:

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

diffs (32 lines):

diff -r 2e2608a77569 -r 6405583cad42 bin/ps/print.c
--- a/bin/ps/print.c    Sat Apr 17 08:34:27 2021 +0000
+++ b/bin/ps/print.c    Sat Apr 17 08:35:33 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print.c,v 1.134 2021/04/06 13:35:52 christos Exp $     */
+/*     $NetBSD: print.c,v 1.135 2021/04/17 08:35:33 maya Exp $ */
 
 /*
  * Copyright (c) 2000, 2007 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
 #if 0
 static char sccsid[] = "@(#)print.c    8.6 (Berkeley) 4/16/94";
 #else
-__RCSID("$NetBSD: print.c,v 1.134 2021/04/06 13:35:52 christos Exp $");
+__RCSID("$NetBSD: print.c,v 1.135 2021/04/17 08:35:33 maya Exp $");
 #endif
 #endif /* not lint */
 
@@ -800,11 +800,9 @@ started(struct pinfo *pi, VARENT *ve, en
        if (now == 0)
                (void)time(&now);
        if (now - k->p_ustart_sec < SECSPERDAY)
-               /* I *hate* SCCS... */
-               safe_strftime(buf, sizeof(buf) - 1, "%l:%" "M%p", tp);
+               safe_strftime(buf, sizeof(buf) - 1, "%l:%M%p", tp);
        else if (now - k->p_ustart_sec < DAYSPERWEEK * SECSPERDAY)
-               /* I *hate* SCCS... */
-               safe_strftime(buf, sizeof(buf) - 1, "%a%" "I%p", tp);
+               safe_strftime(buf, sizeof(buf) - 1, "%a%I%p", tp);
        else
                safe_strftime(buf, sizeof(buf) - 1, "%e%b%y", tp);
        /* %e and %l can start with a space. */



Home | Main Index | Thread Index | Old Index