]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
FTBFS: Use int instead of bool
authorZdenek Dohnal <zdohnal@redhat.com>
Wed, 9 Oct 2024 08:42:01 +0000 (10:42 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Wed, 9 Oct 2024 10:39:22 +0000 (12:39 +0200)
cups/ipp.c

index 874f6229590c524503050ee0d39f236773b6e69a..bc002620bdf253fb44607f6af9599e219c5b06bb 100644 (file)
@@ -35,7 +35,7 @@ static char           *ipp_lang_code(const char *locale, char *buffer, size_t bufsize) _C
 static size_t          ipp_length(ipp_t *ipp, int collection);
 static ssize_t         ipp_read_file(int *fd, ipp_uchar_t *buffer, size_t length);
 static ssize_t         ipp_read_http(http_t *http, ipp_uchar_t *buffer, size_t length);
-static ipp_state_t     ipp_read_io(void *src, ipp_iocb_t cb, bool blocking, ipp_t *parent, ipp_t *ipp, int depth);
+static ipp_state_t     ipp_read_io(void *src, ipp_iocb_t cb, int blocking, ipp_t *parent, ipp_t *ipp, int depth);
 static void            ipp_set_error(ipp_status_t status, const char *format,
                                      ...);
 static _ipp_value_t    *ipp_set_value(ipp_t *ipp, ipp_attribute_t **attr,
@@ -5916,11 +5916,11 @@ ipp_read_http(http_t      *http,        /* I - Client connection */
 
 static ipp_state_t                     /* O - Current state */
 ipp_read_io(void       *src,           /* I - Data source */
-            ipp_iocb_t cb,             /* I - Read callback function */
-           bool       blocking,        /* I - Use blocking IO? */
+           ipp_iocb_t cb,              /* I - Read callback function */
+           int        blocking,        /* I - Use blocking IO? */
            ipp_t      *parent,         /* I - Parent request, if any */
-            ipp_t      *ipp,           /* I - IPP data */
-            int        depth)          /* I - Depth of collection */
+           ipp_t      *ipp,            /* I - IPP data */
+           int        depth)           /* I - Depth of collection */
 {
   int                  n;              /* Length of data */
   unsigned char                *buffer,        /* Data buffer */
@@ -5939,7 +5939,7 @@ ipp_read_io(void       *src,              /* I - Data source */
 
   if (depth > 10)
   {
-    _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP message nested too deeply."), true);
+    _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP message nested too deeply."), 1);
     return (IPP_STATE_ERROR);
   }