Source-Changes-HG archive

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

[src/trunk]: src/bin/csh Clarify some comments.



details:   https://anonhg.NetBSD.org/src/rev/254bcbf21126
branches:  trunk
changeset: 937094:254bcbf21126
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Aug 09 00:51:12 2020 +0000

description:
Clarify some comments.

diffstat:

 bin/csh/csh.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 3a9cc2c62c56 -r 254bcbf21126 bin/csh/csh.c
--- a/bin/csh/csh.c     Sun Aug 09 00:34:21 2020 +0000
+++ b/bin/csh/csh.c     Sun Aug 09 00:51:12 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: csh.c,v 1.51 2020/08/09 00:22:53 dholland Exp $ */
+/* $NetBSD: csh.c,v 1.52 2020/08/09 00:51:12 dholland Exp $ */
 
 /*-
  * Copyright (c) 1980, 1991, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)csh.c      8.2 (Berkeley) 10/12/93";
 #else
-__RCSID("$NetBSD: csh.c,v 1.51 2020/08/09 00:22:53 dholland Exp $");
+__RCSID("$NetBSD: csh.c,v 1.52 2020/08/09 00:51:12 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -845,13 +845,12 @@
        int i;
 
        /* We made it to the new state... free up its storage */
-       /* This code could get run twice but free doesn't care */
-       /* XXX yes it does */
        for (i = 0; i < fblocks; i++)
            free(fbuf[i]);
        free(fbuf);
 
        /* Reset input arena */
+       /* (note that this clears fbuf and fblocks) */
        (void)memcpy(&B, &saveB, sizeof(B));
 
        (void)close(SHIN), SHIN = oSHIN;



Home | Main Index | Thread Index | Old Index