Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/getty - Either QVT/Term or the NT 'clipboard' conver...
details: https://anonhg.NetBSD.org/src/rev/7efb1f0216cf
branches: trunk
changeset: 480492:7efb1f0216cf
user: ad <ad%NetBSD.org@localhost>
date: Fri Jan 14 02:10:08 2000 +0000
description:
- Either QVT/Term or the NT 'clipboard' converts tabs to spaces. I pasted in
some code via QVT/Term. Sigh. Fix it.
- Teeny KNF nit.
diffstat:
libexec/getty/main.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diffs (46 lines):
diff -r 8b5ecd265c28 -r 7efb1f0216cf libexec/getty/main.c
--- a/libexec/getty/main.c Fri Jan 14 02:00:46 2000 +0000
+++ b/libexec/getty/main.c Fri Jan 14 02:10:08 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.30 2000/01/04 13:43:38 ad Exp $ */
+/* $NetBSD: main.c,v 1.31 2000/01/14 02:10:08 ad Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -44,7 +44,7 @@
#if 0
static char sccsid[] = "from: @(#)main.c 8.1 (Berkeley) 6/20/93";
#else
-__RCSID("$NetBSD: main.c,v 1.30 2000/01/04 13:43:38 ad Exp $");
+__RCSID("$NetBSD: main.c,v 1.31 2000/01/14 02:10:08 ad Exp $");
#endif
#endif /* not lint */
@@ -341,17 +341,17 @@
* If this is the first time through this, and an
* issue file has been given, then send it.
*/
- if (first_time && IF) {
- char buf[_POSIX2_LINE_MAX];
- FILE *fd;
-
- if ((fd = fopen(IF, "r")) != NULL) {
- while (fgets(buf, sizeof(buf) - 1, fd) != NULL)
- putf(buf);
+ if (first_time != 0 && IF != NULL) {
+ char buf[_POSIX2_LINE_MAX];
+ FILE *fd;
+
+ if ((fd = fopen(IF, "r")) != NULL) {
+ while (fgets(buf, sizeof(buf) - 1, fd) != NULL)
+ putf(buf);
fclose(fd);
- }
- }
- first_time = 0;
+ }
+ }
+ first_time = 0;
if (IM && *IM)
putf(IM);
Home |
Main Index |
Thread Index |
Old Index