Module Name:    src
Committed By:   maya
Date:           Sat Apr 17 08:34:28 UTC 2021

Modified Files:
        src/usr.bin/systat: ps.c

Log Message:
Remove SCCS workarounds. No binary change.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/usr.bin/systat/ps.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/systat/ps.c
diff -u src/usr.bin/systat/ps.c:1.39 src/usr.bin/systat/ps.c:1.40
--- src/usr.bin/systat/ps.c:1.39	Wed Aug 26 10:56:01 2020
+++ src/usr.bin/systat/ps.c	Sat Apr 17 08:34:27 2021
@@ -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 @@ start2str(struct kinfo_proc2 *kp)
 	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);
 

Reply via email to