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/26cca7e93894
branches: trunk
changeset: 340898:26cca7e93894
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 a24f40608030 -r 26cca7e93894 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