diff options
Diffstat (limited to 'bin/rcp')
-rw-r--r-- | bin/rcp/rcp.c | 10 | ||||
-rw-r--r-- | bin/rcp/util.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c index c33bbc5..53f601c 100644 --- a/bin/rcp/rcp.c +++ b/bin/rcp/rcp.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: rcp.c,v 1.2 1994/09/24 02:56:56 davidg Exp $ */ #ifndef lint @@ -226,7 +226,7 @@ main(argc, argv) (void)signal(SIGPIPE, lostconn); - if (targ = colon(argv[argc - 1])) /* Dest is remote host. */ + if ((targ = colon(argv[argc - 1]))) /* Dest is remote host. */ toremote(targ, argc, argv); else { tolocal(argc, argv); /* Dest is local host. */ @@ -248,7 +248,7 @@ toremote(targ, argc, argv) if (*targ == 0) targ = "."; - if (thost = strchr(argv[argc - 1], '@')) { + if ((thost = strchr(argv[argc - 1], '@'))) { /* user@host */ *thost++ = 0; tuser = argv[argc - 1]; @@ -509,7 +509,7 @@ rsource(name, statp) closedir(dirp); return; } - while (dp = readdir(dirp)) { + while ((dp = readdir(dirp))) { if (dp->d_ino == 0) continue; if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, "..")) @@ -539,7 +539,7 @@ sink(argc, argv) BUF *bp; off_t i, j; int amt, count, exists, first, mask, mode, ofd, omode; - int setimes, size, targisdir, wrerrno; + int setimes, size, targisdir, wrerrno = 0; char ch, *cp, *np, *targ, *why, *vect[1], buf[BUFSIZ]; #define atime tv[0] diff --git a/bin/rcp/util.c b/bin/rcp/util.c index 287bb08..89e3560 100644 --- a/bin/rcp/util.c +++ b/bin/rcp/util.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: util.c,v 1.2 1994/09/24 02:56:57 davidg Exp $ */ #ifndef lint @@ -111,7 +111,7 @@ susystem(s, userid) char *s; { sig_t istat, qstat; - int status, w; + int status; pid_t pid; pid = vfork(); |