]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/funambol/serv_funambol.c
* 64 bit cleanness: format size_t properly in printf()
[citadel.git] / citadel / modules / funambol / serv_funambol.c
index 561be098664567f7c88a7d2eb3364b23573836cd..3ea21710509be11ca107bc9611d2094e3b0f677f 100644 (file)
@@ -112,7 +112,7 @@ void notify_funambol(long msgnum, void *userdata) {
                goto nuke;
        }
        /* Are we allowed to push? */
-       if ( strlen(config.c_funambol_host) == 0) {
+       if (IsEmptyStr(config.c_funambol_host)) {
                goto nuke;
        } else {
                lprintf(CTDL_INFO, "Push enabled\n");
@@ -189,7 +189,7 @@ void notify_funambol(long msgnum, void *userdata) {
                );
                strcat(SOAPHeader,buf);
        strcat(SOAPHeader,"Pragma: no-cache\r\nSOAPAction: \"\"\r\n");
-       sprintf(buf, "Content-Length: %d\r\n",
+       sprintf(buf, "Content-Length: " SIZE_T_FMT "\r\n",
                strlen(SOAPData));
        strcat(SOAPHeader, buf);
        sprintf(buf, "Authorization: Basic %s\r\n\r\n",