summaryrefslogtreecommitdiff
path: root/usr/src/cmd/print/bsd-sysv-commands/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/print/bsd-sysv-commands/common.c')
-rw-r--r--usr/src/cmd/print/bsd-sysv-commands/common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/common.c b/usr/src/cmd/print/bsd-sysv-commands/common.c
index ca60249bd9..8b4f50bdc8 100644
--- a/usr/src/cmd/print/bsd-sysv-commands/common.c
+++ b/usr/src/cmd/print/bsd-sysv-commands/common.c
@@ -258,10 +258,10 @@ cancel_job(papi_service_t svc, FILE *fp, char *printer, papi_job_t job,
if (status != PAPI_OK)
mesg = papiStatusString(status);
- if (id != 0)
- fprintf(fp, "%s-%d: %s\n", printer, id, mesg);
- else
+ if (rid != 0)
fprintf(fp, "%s-%d: %s\n", printer, rid, mesg);
+ else
+ fprintf(fp, "%s-%d: %s\n", printer, id, mesg);
}
int