diff options
author | Michael Sweet <michael.r.sweet@gmail.com> | 2016-04-15 10:31:13 -0400 |
---|---|---|
committer | Michael Sweet <michael.r.sweet@gmail.com> | 2016-04-15 10:31:13 -0400 |
commit | 68c4690a3b0b018488c01343d3546b1b1fc51090 (patch) | |
tree | ee5b4266c95c3d59cdcf6e556d07212f74965778 /systemv | |
parent | e00dad7cd7e666a5caa971018fcf3fb595f93977 (diff) |
Add more targets covering the CGIs and filters.
Fix some build warnings.
Diffstat (limited to 'systemv')
-rw-r--r-- | systemv/cancel.c | 4 | ||||
-rw-r--r-- | systemv/cupstestdsc.c | 4 | ||||
-rw-r--r-- | systemv/lpinfo.c | 1 | ||||
-rw-r--r-- | systemv/lpstat.c | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/systemv/cancel.c b/systemv/cancel.c index 67346393d..7540d0ba8 100644 --- a/systemv/cancel.c +++ b/systemv/cancel.c @@ -282,7 +282,7 @@ main(int argc, /* I - Number of command-line arguments */ "requesting-user-name", NULL, cupsUser()); if (purge) - ippAddBoolean(request, IPP_TAG_OPERATION, "purge-jobs", purge); + ippAddBoolean(request, IPP_TAG_OPERATION, "purge-jobs", (char)purge); /* * Do the request and get back a response... @@ -348,7 +348,7 @@ main(int argc, /* I - Number of command-line arguments */ ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); - ippAddBoolean(request, IPP_TAG_OPERATION, "purge-jobs", purge); + ippAddBoolean(request, IPP_TAG_OPERATION, "purge-jobs", (char)purge); /* * Do the request and get back a response... diff --git a/systemv/cupstestdsc.c b/systemv/cupstestdsc.c index df69d9425..a8420b8b2 100644 --- a/systemv/cupstestdsc.c +++ b/systemv/cupstestdsc.c @@ -187,7 +187,7 @@ check_file(const char *filename) /* I - File to read from */ return (1); } else - version = atof(line + 11); + version = (float)atof(line + 11); } else if (level > 0) { @@ -316,7 +316,7 @@ check_file(const char *filename) /* I - File to read from */ saw_trailer = 1; } - for (i = 0; !binary && i < bytes; i ++) + for (i = 0; !binary && i < (int)bytes; i ++) { ch = line[i]; diff --git a/systemv/lpinfo.c b/systemv/lpinfo.c index b8f77264c..692cb3ab7 100644 --- a/systemv/lpinfo.c +++ b/systemv/lpinfo.c @@ -16,6 +16,7 @@ */ #include <cups/cups-private.h> +#include <cups/adminutil.h> /* diff --git a/systemv/lpstat.c b/systemv/lpstat.c index b555f6a42..c487f8708 100644 --- a/systemv/lpstat.c +++ b/systemv/lpstat.c @@ -544,7 +544,7 @@ check_dest(const char *command, /* I - Command name */ for (pptr = printer; !isspace(*dptr & 255) && *dptr != ',' && *dptr;) { - if ((pptr - printer) < (sizeof(printer) - 1)) + if ((size_t)(pptr - printer) < (sizeof(printer) - 1)) *pptr++ = *dptr++; else { |