ipp_attribute_t *doc_handling_sup);
static const char *password_cb(const char *);
static void report_attr(ipp_attribute_t *attr);
-static int report_printer_state(ipp_t *ipp, int job_id);
+static void report_printer_state(ipp_t *ipp, int job_id);
#if defined(HAVE_GSSAPI) && defined(HAVE_XPC)
static int run_as_user(int argc, char *argv[], uid_t uid,
const char *device_uri, int fd);
* 'report_printer_state()' - Report the printer state.
*/
-static int /* O - Number of reasons shown */
+static void
report_printer_state(ipp_t *ipp, /* I - IPP response */
int job_id) /* I - Current job ID */
{
- int count; /* Count of reasons shown... */
ipp_attribute_t *pa, /* printer-alert */
*pam, /* printer-alert-message */
*psm, /* printer-state-message */
if ((reasons = ippFindAttribute(ipp, "printer-state-reasons",
IPP_TAG_KEYWORD)) == NULL)
- return (0);
+ return;
update_reasons(reasons, NULL);
IPP_TAG_KEYWORD)) != NULL)
report_attr(marker);
}
-
- return (count);
}