From 9ea098b13eac4c2c4554933b99c331473166c01c Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Sun, 7 Sep 2003 15:30:42 +0000 Subject: Remove duplicate #include. Do not \n terminate errx() arg. --- usr.bin/rsh/rsh.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/rsh/rsh.c b/usr.bin/rsh/rsh.c index 2830f136c425..63bc661c259e 100644 --- a/usr.bin/rsh/rsh.c +++ b/usr.bin/rsh/rsh.c @@ -44,9 +44,11 @@ static const char copyright[] = The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ +#if 0 #ifndef lint static const char sccsid[] = "From: @(#)rsh.c 8.3 (Berkeley) 4/6/94"; #endif /* not lint */ +#endif #include __FBSDID("$FreeBSD$"); @@ -71,7 +73,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include /* * rsh - remote shell @@ -304,7 +305,7 @@ done: continue; } if (srval == 0) - errx(1, "timeout reached (%d seconds)\n", timeout); + errx(1, "timeout reached (%d seconds)", timeout); if (FD_ISSET(rfd2, &ready)) { errno = 0; cc = read(rfd2, buf, sizeof buf); -- cgit v1.3