summaryrefslogtreecommitdiff
path: root/usr/src/cmd/print/bsd-sysv-commands/in.lpd.c
diff options
context:
space:
mode:
authorjacobs <none@none>2006-11-15 21:19:01 -0800
committerjacobs <none@none>2006-11-15 21:19:01 -0800
commitd978af5cd9e717f0cb0742b6e940c8fdd836504d (patch)
treeb12e13b5c03feaeee486ea8a47e97f58c7bdd502 /usr/src/cmd/print/bsd-sysv-commands/in.lpd.c
parentf3861e1a2ceec23a5b699c24d814b7775a9e0b52 (diff)
downloadillumos-joyent-d978af5cd9e717f0cb0742b6e940c8fdd836504d.tar.gz
4634017 Lpadmin's new printer limit needs to be increased. (fix cstyle)
6486772 in.lpd should use libpapi (fix cstyle) 6491971 in.lpd and the ipp listener should detect cycles (fix cstyle) 6492414 lpstat -o -l should report on requested form when available (fix cstyle)
Diffstat (limited to 'usr/src/cmd/print/bsd-sysv-commands/in.lpd.c')
-rw-r--r--usr/src/cmd/print/bsd-sysv-commands/in.lpd.c14
1 files changed, 7 insertions, 7 deletions
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 18487c51d8..7782ee9a36 100644
--- a/usr/src/cmd/print/bsd-sysv-commands/in.lpd.c
+++ b/usr/src/cmd/print/bsd-sysv-commands/in.lpd.c
@@ -475,7 +475,7 @@ receive_data_file(FILE *ifp, FILE *ofp, int size)
if (wrc < 0) {
close(fd);
unlink(file);
- return(NULL);
+ return (NULL);
}
ptr += wrc;
@@ -493,7 +493,7 @@ receive_data_file(FILE *ifp, FILE *ofp, int size)
return (strdup(file));
}
-
+
static papi_status_t
berkeley_receive_files(papi_service_t svc, FILE *ifp, FILE *ofp, char *printer)
{
@@ -592,11 +592,11 @@ cyclical_service_check(char *svc_name)
return (0);
if ((list = getprinterbyname(svc_name, NULL)) == NULL)
- return (0); /* if it doesnt' resolve, we will fail later */
+ return (0); /* if it doesnt' resolve, we will fail later */
papiAttributeListGetString(list, NULL, "printer-uri-supported", &s);
if ((s == NULL) || (strcasecmp(svc_name, s) != 0))
- return (0); /* they don't match */
+ return (0); /* they don't match */
/* is it in uri form? */
if (uri_from_string(s, &uri) < 0)
@@ -616,7 +616,7 @@ cyclical_service_check(char *svc_name)
/* is it the local host? */
sysinfo(SI_HOSTNAME, buf, sizeof (buf));
if ((strcasecmp(uri->host, "localhost") != 0) &&
- (strcasecmp(uri->host, buf) != 0)) {
+ (strcasecmp(uri->host, buf) != 0)) {
uri_free(uri);
return (0);
}
@@ -667,7 +667,7 @@ main(int ac, char *av[])
if (run_user != NULL) /* get the requested user info */
pw = getpwnam(run_user);
-
+
if (run_dir != NULL) { /* setup the run_dir */
(void) mkdir(run_dir, 0700);
if (pw != NULL)
@@ -675,7 +675,7 @@ main(int ac, char *av[])
}
if (pw != NULL) { /* run as the requested user */
- syslog(LOG_DEBUG, "name: %s, uid: %d, gid: %d",
+ syslog(LOG_DEBUG, "name: %s, uid: %d, gid: %d",
pw->pw_name, pw->pw_uid, pw->pw_gid);
initgroups(pw->pw_name, pw->pw_gid);
setgid(pw->pw_gid);