Source-Changes-HG archive

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

[src/trunk]: src/tools/compat use c comments



details:   https://anonhg.NetBSD.org/src/rev/6f3abf61284f
branches:  trunk
changeset: 811040:6f3abf61284f
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 09 14:42:40 2015 +0000

description:
use c comments

diffstat:

 tools/compat/fgetln.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 86ec7dfcc211 -r 6f3abf61284f tools/compat/fgetln.c
--- a/tools/compat/fgetln.c     Fri Oct 09 13:03:55 2015 +0000
+++ b/tools/compat/fgetln.c     Fri Oct 09 14:42:40 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fgetln.c,v 1.11 2015/10/08 20:33:58 christos Exp $     */
+/*     $NetBSD: fgetln.c,v 1.12 2015/10/09 14:42:40 christos Exp $     */
 
 /*
  * Copyright (c) 2015 Joerg Jung <jung%openbsd.org@localhost>
@@ -54,8 +54,10 @@
        while ((c = getc(fp)) != EOF) {
                buf[r++] = c;
                if (r == bufsz) {
-                       // Original uses reallocarray() but we don't have it
-                       // in tools.
+                       /*
+                        * Original uses reallocarray() but we don't have it
+                        * in tools.
+                        */
                        if (!(p = realloc(buf, 2 * bufsz))) {
                                e = errno;
                                free(buf);



Home | Main Index | Thread Index | Old Index