diff options
author | charnier <charnier@FreeBSD.org> | 2003-09-07 15:30:42 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2003-09-07 15:30:42 +0000 |
commit | 7ea58f2955d8d0650dbbdb6a5dc590927af52bba (patch) | |
tree | 516aaa9a668081f219858dea073a4d35b79b92ce /usr.bin | |
parent | 45feeef2edbb71c565c839f1e103f1dafb758b6d (diff) | |
download | FreeBSD-src-7ea58f2955d8d0650dbbdb6a5dc590927af52bba.zip FreeBSD-src-7ea58f2955d8d0650dbbdb6a5dc590927af52bba.tar.gz |
Remove duplicate #include. Do not \n terminate errx() arg.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rsh/rsh.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/rsh/rsh.c b/usr.bin/rsh/rsh.c index 2830f13..63bc661 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 <sys/cdefs.h> __FBSDID("$FreeBSD$"); @@ -71,7 +73,6 @@ __FBSDID("$FreeBSD$"); #include <stdlib.h> #include <string.h> #include <unistd.h> -#include <err.h> /* * 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); |