Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/tic White space police.
details: https://anonhg.NetBSD.org/src/rev/d82c8daf4b01
branches: trunk
changeset: 343734:d82c8daf4b01
user: roy <roy%NetBSD.org@localhost>
date: Wed Feb 24 12:01:44 2016 +0000
description:
White space police.
diffstat:
usr.bin/tic/tic.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diffs (61 lines):
diff -r 3a6f55ad7c37 -r d82c8daf4b01 usr.bin/tic/tic.c
--- a/usr.bin/tic/tic.c Wed Feb 24 08:01:09 2016 +0000
+++ b/usr.bin/tic/tic.c Wed Feb 24 12:01:44 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tic.c,v 1.24 2014/07/20 20:20:16 christos Exp $ */
+/* $NetBSD: tic.c,v 1.25 2016/02/24 12:01:44 roy Exp $ */
/*
* Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: tic.c,v 1.24 2014/07/20 20:20:16 christos Exp $");
+__RCSID("$NetBSD: tic.c,v 1.25 2016/02/24 12:01:44 roy Exp $");
#include <sys/types.h>
#include <sys/queue.h>
@@ -164,7 +164,7 @@
char *p, *e, *alias;
TERM *term;
TIC *tic;
-
+
if (buf->bufpos == 0)
return 0;
/* Terminate the string */
@@ -204,7 +204,7 @@
}
free(alias);
}
-
+
return 0;
}
@@ -419,7 +419,7 @@
printf("\t\t\"");
col = 16;
}
-
+
col += printf("\\%03o", (uint8_t)buf[j]);
if (col > 75) {
printf("\"%s\n",
@@ -542,7 +542,7 @@
*/
if (!isspace((unsigned char)*buf) && tbuf.bufpos != 0)
process_entry(&tbuf, flags);
-
+
/* Grow the buffer if needed */
grow_tbuf(&tbuf, len);
/* Append the string */
@@ -588,6 +588,5 @@
hdestroy1(free, NULL);
#endif
-
return EXIT_SUCCESS;
}
Home |
Main Index |
Thread Index |
Old Index