Fix warnings trivial warnings.

Fix warnings about:
 . Unused variables
 . format mismatch in printf/scanf format string and arguments
 . Missing parenthesis around assignment as truth values
 . Clang warnings anout unknown GCC pragma
This commit is contained in:
2013-01-14 11:44:31 +01:00
parent 77399bd649
commit 0ac803292e
65 changed files with 297 additions and 284 deletions
+5 -1
View File
@@ -38,7 +38,9 @@ char copyright[] =
#endif /* not lint */
#ifndef lint
#if 0
static char sccsid[] = "@(#)rsh.c 5.24 (Berkeley) 7/1/91";
#endif
#endif /* not lint */
/*
@@ -126,7 +128,7 @@ main(argc, argv)
host = user = NULL;
/* if called as something other than "rsh", use it as the host name */
if (p = rindex(argv[0], '/'))
if ((p = rindex(argv[0], '/')))
++p;
else
p = argv[0];
@@ -359,7 +361,9 @@ talk(nflag, omask, pid, rem)
{
register int cc, wc;
register char *bp;
#if !_MINIX
int readfrom, ready, rembits;
#endif
char buf[BUFSIZ];
#if _MINIX
int pid1;