diff options
Diffstat (limited to 'usr/src/cmd/print/bsd-sysv-commands')
-rw-r--r-- | usr/src/cmd/print/bsd-sysv-commands/cancel.c | 2 | ||||
-rw-r--r-- | usr/src/cmd/print/bsd-sysv-commands/in.lpd.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/cancel.c b/usr/src/cmd/print/bsd-sysv-commands/cancel.c index 23359d9b5e..a4af36c298 100644 --- a/usr/src/cmd/print/bsd-sysv-commands/cancel.c +++ b/usr/src/cmd/print/bsd-sysv-commands/cancel.c @@ -200,7 +200,7 @@ main(int ac, char *av[]) /* Remove first job from printer */ status = papiPrinterListJobs(svc, printer, - NULL, NULL, 0, &jobs); + NULL, 0, 0, &jobs); if (status != PAPI_OK) { fprintf(stderr, gettext( 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 1b058ac291..b6f1bc709b 100644 --- a/usr/src/cmd/print/bsd-sysv-commands/in.lpd.c +++ b/usr/src/cmd/print/bsd-sysv-commands/in.lpd.c @@ -130,7 +130,7 @@ static papi_attribute_t ** parse_cf(papi_service_t svc, char *cf, char **files) { papi_attribute_t **list = NULL; - char previous = NULL; + char previous = '\0'; char *entry; int copies_set = 0; int copies = 0; @@ -509,7 +509,7 @@ berkeley_receive_files(papi_service_t svc, FILE *ifp, FILE *ofp, char *printer) case 0x02: { /* Receive control file */ if (((cf = strchr(buf, ' ')) != NULL) && (strlen(cf) > 4)) { - while ((*cf != NULL) && (isdigit(*cf) == 0)) + while ((*cf != '\0') && (isdigit(*cf) == 0)) cf++; rid = atoi(cf); } |