diff options
author | Gowtham Thommandra <Gowtham.Thommandra@Sun.COM> | 2009-06-12 11:18:16 +0530 |
---|---|---|
committer | Gowtham Thommandra <Gowtham.Thommandra@Sun.COM> | 2009-06-12 11:18:16 +0530 |
commit | f154fbfe3b88e1aff7a84e2f07fac78682e7e480 (patch) | |
tree | 7c31eb0f10d292399d47902d2f1df6e0c1796c0e /usr/src/cmd/print/bsd-sysv-commands/lpstat.c | |
parent | bcd10dc83792724905adb263edda0eacfc9d2c46 (diff) | |
download | illumos-joyent-f154fbfe3b88e1aff7a84e2f07fac78682e7e480.tar.gz |
6668786 lpstat -t return non-zero code without printers defined
Diffstat (limited to 'usr/src/cmd/print/bsd-sysv-commands/lpstat.c')
-rw-r--r-- | usr/src/cmd/print/bsd-sysv-commands/lpstat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/lpstat.c b/usr/src/cmd/print/bsd-sysv-commands/lpstat.c index affe57a0a3..951356a8de 100644 --- a/usr/src/cmd/print/bsd-sysv-commands/lpstat.c +++ b/usr/src/cmd/print/bsd-sysv-commands/lpstat.c @@ -113,7 +113,6 @@ lpstat_default_printer(papi_encryption_t encryption) static int lpstat_service_status(papi_encryption_t encryption) { - int result = 0; papi_status_t status; papi_service_t svc = NULL; char *name = NULL; @@ -127,12 +126,11 @@ lpstat_service_status(papi_encryption_t encryption) encryption, NULL); if (status != PAPI_OK) { printf(gettext("scheduler is not running\n")); - result = -1; } else printf(gettext("scheduler is running\n")); papiServiceDestroy(svc); - return (result); + return (0); } static char * |