Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Make a comment meaningful. ie: s/Ditto/what it wa...



details:   https://anonhg.NetBSD.org/src/rev/32dc85b28f9f
branches:  trunk
changeset: 321329:32dc85b28f9f
user:      kre <kre%NetBSD.org@localhost>
date:      Sun Mar 11 15:13:05 2018 +0000

description:
Make a comment meaningful.   ie: s/Ditto/what it was copying/  (more or less)

That is, there was a comment "Ditto" - which once upon a time, was used
to indicate the the previous comment applied here as well.   Time passed,
and software mutated, and the previous comment was unfortunately sacrificed.

Poor little Ditto was left all alone.

Noticed while doing some software archaeology.

diffstat:

 sys/kern/kern_proc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2547c191343f -r 32dc85b28f9f sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c      Sun Mar 11 14:59:41 2018 +0000
+++ b/sys/kern/kern_proc.c      Sun Mar 11 15:13:05 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_proc.c,v 1.209 2017/11/30 18:44:16 maxv Exp $     */
+/*     $NetBSD: kern_proc.c,v 1.210 2018/03/11 15:13:05 kre Exp $      */
 
 /*-
  * Copyright (c) 1999, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.209 2017/11/30 18:44:16 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.210 2018/03/11 15:13:05 kre Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_kstack.h"
@@ -1655,7 +1655,7 @@
                        arg = name[1];
                        break;
                }
-               elem_count = 0; /* Ditto */
+               elem_count = 0; /* Hush little compiler, don't you cry */
                kelem_size = elem_size = sizeof(kbuf->kproc);
        } else {
                if (namelen != 4)



Home | Main Index | Thread Index | Old Index