summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr/common_source/rmjob.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-07-04 05:41:58 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-07-04 05:41:58 +0000
commit290fcc059d9fe17e7c22befa3c3615823eef59d6 (patch)
tree3d48e15674c15d481ba268cd05cf072f00a9aa21 /usr.sbin/lpr/common_source/rmjob.c
parent73e06b23207009eef589976eeefda52b10cd5f05 (diff)
Integrated 4.4Lite2 source
Fixed potential problem pointed out by bitblt
Diffstat (limited to 'usr.sbin/lpr/common_source/rmjob.c')
-rw-r--r--usr.sbin/lpr/common_source/rmjob.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/common_source/rmjob.c b/usr.sbin/lpr/common_source/rmjob.c
index cf9cf26b117..b3fd6daec92 100644
--- a/usr.sbin/lpr/common_source/rmjob.c
+++ b/usr.sbin/lpr/common_source/rmjob.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)rmjob.c 8.1 (Berkeley) 6/6/93";
+static char sccsid[] = "@(#)rmjob.c 8.2 (Berkeley) 4/28/95";
#endif /* not lint */
#include <sys/param.h>
@@ -316,7 +316,7 @@ rmremote()
register int i, rem;
char buf[BUFSIZ];
- if (!sendtorem)
+ if (!remote)
return; /* not sending to a remote machine */
/*
@@ -337,7 +337,7 @@ rmremote()
(void) sprintf(cp, " %d", requ[i]);
}
strcat(cp, "\n");
- rem = getport(RM);
+ rem = getport(RM, 0);
if (rem < 0) {
if (from != host)
printf("%s: ", host);