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:
Justin Maggard
2014-04-10 18:18:28 -07:00
parent 57c6510fe4
commit 45cf9208fb
3 changed files with 7 additions and 5 deletions

View File

@ -1984,9 +1984,9 @@ SendResp_dlnafile(struct upnphttp *h, char *object)
if( h->reqflags & FLAG_CAPTION )
{
if( sql_get_int_field(db, "SELECT ID from CAPTIONS where ID = '%lld'", id) > 0 )
if( sql_get_int_field(db, "SELECT ID from CAPTIONS where ID = '%lld'", (long long)id) > 0 )
strcatf(&str, "CaptionInfo.sec: http://%s:%d/Captions/%lld.srt\r\n",
lan_addr[h->iface].str, runtime_vars.port, id);
lan_addr[h->iface].str, runtime_vars.port, (long long)id);
}
strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));