summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorjacobs <none@none>2008-05-27 16:11:18 -0700
committerjacobs <none@none>2008-05-27 16:11:18 -0700
commit574e15a0e3a43271cd1773a2002f154c0e937eaa (patch)
tree1723fbe98afa951fa25c8a628c6fa704d80220b4 /usr/src
parentc2785286330b58810071fc24f6ca69f401682dff (diff)
downloadillumos-gate-574e15a0e3a43271cd1773a2002f154c0e937eaa.tar.gz
6698648 127127/127128-11 break lp -P (fix cstyle)
6698649 127127/127128-11 break lp -H hold (fix cstyle) 6698650 127127/127128-11 break lp -q (fix cstyle)
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/lp/lib/papi/lpsched-jobs.c17
-rw-r--r--usr/src/cmd/print/bsd-sysv-commands/in.lpd.c2
2 files changed, 10 insertions, 9 deletions
diff --git a/usr/src/cmd/lp/lib/papi/lpsched-jobs.c b/usr/src/cmd/lp/lib/papi/lpsched-jobs.c
index 933e2fc3af..d9a7ea1540 100644
--- a/usr/src/cmd/lp/lib/papi/lpsched-jobs.c
+++ b/usr/src/cmd/lp/lib/papi/lpsched-jobs.c
@@ -105,15 +105,15 @@ job_attributes_to_lpsched_request(papi_service_t svc, REQUEST *r,
papiAttributeListGetLPString(attributes, "form", &r->form);
/* set the page range */
- memset(tmp, NULL, sizeof (tmp));
- tmp[0] = papiAttributeListFind(attributes, "page-ranges");
- if (tmp[0] != NULL) {
- char buf[BUFSIZ];
+ memset(tmp, NULL, sizeof (tmp));
+ tmp[0] = papiAttributeListFind(attributes, "page-ranges");
+ if (tmp[0] != NULL) {
+ char buf[BUFSIZ];
- papiAttributeListToString(tmp, " ", buf, sizeof (buf));
- if ((s = strchr(buf, '=')) != NULL)
+ papiAttributeListToString(tmp, " ", buf, sizeof (buf));
+ if ((s = strchr(buf, '=')) != NULL)
r->pages = (char *)strdup(++s);
- }
+ }
/*
* set the document format, converting to old format names as
@@ -411,7 +411,8 @@ lpsched_request_to_job_attributes(REQUEST *r, job_t *j)
/* priority (map 0-39 to 1-100) */
papiAttributeListAddInteger(&j->attributes, PAPI_ATTR_REPLACE,
- "job-priority", (int)(100 - (r->priority * 2.5)));
+ "job-priority",
+ (int)(100 - (r->priority * 2.5)));
/* pages */
papiAttributeListAddLPString(&j->attributes, PAPI_ATTR_REPLACE,
diff --git a/usr/src/cmd/print/bsd-sysv-commands/in.lpd.c b/usr/src/cmd/print/bsd-sysv-commands/in.lpd.c
index 6a012adcb1..e10a5b249c 100644
--- a/usr/src/cmd/print/bsd-sysv-commands/in.lpd.c
+++ b/usr/src/cmd/print/bsd-sysv-commands/in.lpd.c
@@ -326,7 +326,7 @@ parse_cf(papi_service_t svc, char *cf, char **files)
snprintf(buf, sizeof (buf), "page-ranges=%s",
++entry);
- papiAttributeListFromString(&list,
+ papiAttributeListFromString(&list,
PAPI_ATTR_EXCL, buf);
}
break;