Declare printf-like attributes for strcatf() and xasprintf()
Declare printf-like attributes for strcatf() and xasprintf(), and clean up errors found by the compile after doing so.
This commit is contained in:
@ -308,7 +308,7 @@ SendItemDetails(struct upnphttp *h, int64_t item)
|
||||
args.requested = 1;
|
||||
xasprintf(&sql, SELECT_COLUMNS
|
||||
"from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID)"
|
||||
" where o.DETAIL_ID = %lld group by o.DETAIL_ID", item);
|
||||
" where o.DETAIL_ID = %lld group by o.DETAIL_ID", (long long)item);
|
||||
DPRINTF(E_DEBUG, L_TIVO, "%s\n", sql);
|
||||
ret = sqlite3_exec(db, sql, callback, (void *) &args, &zErrMsg);
|
||||
free(sql);
|
||||
|
Reference in New Issue
Block a user