cups_dnssd_query_t *query; // Query request
- DEBUG_printf("cupsDNSSDQueryNew(dnssd=%p, if_index=%u, fullname=\"%s\", rrtype=%u, query_cb=%p, cb_data=%p)", (void *)dnssd, if_index, fullname, rrtype, query_cb, cb_data);
+ DEBUG_printf("cupsDNSSDQueryNew(dnssd=%p, if_index=%u, fullname=\"%s\", rrtype=%u, query_cb=%p, cb_data=%p)", (void *)dnssd, if_index, fullname, rrtype, (void *)query_cb, cb_data);
// Range check input...
if (!dnssd || !fullname || !query_cb)
}
// Remove existing JOSE string, if any...
- DEBUG_printf("1cupsJWTSign: jose=%p, jose_string=\"%s\"", jwt->jose, jwt->jose_string);
+ DEBUG_printf("1cupsJWTSign: jose=%p, jose_string=\"%s\"", (void *)jwt->jose, jwt->jose_string);
_cupsJSONDelete(jwt->jose, "alg");
_cupsJSONDelete(jwt->jose, "x5c");
y = make_bignum(jwk, "y");
d = verify ? NULL : make_bignum(jwk, "d");
- DEBUG_printf("4make_ec_key: crv=\"%s\", x=%p, y=%p, d=%p", crv, x, y, d);
+ DEBUG_printf("4make_ec_key: crv=\"%s\", x=%p, y=%p, d=%p", crv, (void *)x, (void *)y, (void *)d);
if (!crv || ((!x || !y) && !d))
goto ec_done;
rsa_done:
- DEBUG_printf("4make_rsa: n=%p, e=%p, d=%p, p=%p, q=%p, dp=%p, dq=%p, qi=%p, rsa=%p", n, e, d, p, q, dp, dq, qi, rsa);
+ DEBUG_printf("4make_rsa: n=%p, e=%p, d=%p, p=%p, q=%p, dp=%p, dq=%p, qi=%p, rsa=%p", (void *)n, (void *)e, (void *)d, (void *)p, (void *)q, (void *)dp, (void *)dq, (void *)qi, (void *)rsa);
if (!rsa)
{
// Validate input...
- DEBUG_printf("cupsSaveCredentials(path=\"%s\", common_name=\"%s\", credentials=%p(%u), key=%p(%u))", path, common_name, credentials, credentials ? (unsigned)strlen(credentials) : 0, key, key ? (unsigned)strlen(key) : 0);
+ DEBUG_printf("cupsSaveCredentials(path=\"%s\", common_name=\"%s\", credentials=%p(%u), key=%p(%u))", path, common_name, (void *)credentials, credentials ? (unsigned)strlen(credentials) : 0, (void *)key, key ? (unsigned)strlen(key) : 0);
if (!path)
path = http_default_path(defpath, sizeof(defpath));
* Loop through all attributes...
*/
- bytes = 0;
+ bytes = 1;
for (attr = ipp->attrs; attr != NULL; attr = attr->next)
{
}
}
- if (strncmp(p->device_uri, "file:", 5) && p->state != IPP_PSTATE_STOPPED)
+ if (p->device_uri && strncmp(p->device_uri, "file:", 5) && p->state != IPP_PSTATE_STOPPED)
{
/*
* See if the backend exists...
if ((value = getenv("IPP_SIDES")) == NULL)
value = getenv("IPP_SIDES_DEFAULT");
- if (value && ppd_cache->sides_option)
+ if (value && ppd_cache && ppd_cache->sides_option)
{
if (!strcmp(value, "one-sided") && ppd_cache->sides_1sided)
num_options = cupsAddOption(ppd_cache->sides_option, ppd_cache->sides_1sided, num_options, options);
if ((value = getenv("IPP_PRINT_QUALITY")) == NULL)
value = getenv("IPP_PRINT_QUALITY_DEFAULT");
- if (value)
+ if (value && ppd_cache)
{
int i; /* Looping var */
int pq; /* Print quality (0-2) */