Module Name:    src
Committed By:   christos
Date:           Fri Oct  9 14:42:40 UTC 2015

Modified Files:
        src/tools/compat: fgetln.c

Log Message:
use c comments


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/tools/compat/fgetln.c

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

Modified files:

Index: src/tools/compat/fgetln.c
diff -u src/tools/compat/fgetln.c:1.11 src/tools/compat/fgetln.c:1.12
--- src/tools/compat/fgetln.c:1.11	Thu Oct  8 16:33:58 2015
+++ src/tools/compat/fgetln.c	Fri Oct  9 10:42:40 2015
@@ -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 <[email protected]>
@@ -54,8 +54,10 @@ fgetln(FILE *fp, size_t *len)
 	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);

Reply via email to