I'm trying to write a function to return the remote file moddate. I copied 
isnewer and changed the end as so.
...
                theModDate = 0;

        /* get the modification date */
        theCurlCode = curl_easy_getinfo(theHandle, CURLINFO_FILETIME, 
&theModDate);
        if (theCurlCode != CURLE_OK) {
            theResult = SetResultFromCurlErrorCode(interp, theCurlCode);
            break;
        }

                (void) snprintf(theModDateString, sizeof(theModDateString),
                        "%Ld", theModDate);
                Tcl_SetResult(interp, theModDateString, TCL_VOLATILE);

...

Is there anything obviously with the snprintf args, or anything else?
It appears to always return "-1";


Regards,
Bradley Giesbrecht (pixilla)

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to