aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-04 18:59:05 +0000
committerYang Tse <yangsita@gmail.com>2008-09-04 18:59:05 +0000
commit3dcd2b82c4095e34342c8d0778d45d547c23b06d (patch)
treeda4bf9cc899604f034776bff1268e579640a70e6 /src/main.c
parentc0f3e324479c6c0e66f0f45c43429041f5c5d34d (diff)
fix print formatting string directives
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 467fe0807..e9f9d30a2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3480,8 +3480,8 @@ int my_trace(CURL *handle, curl_infotype type,
secs = tv.tv_sec;
now = localtime(&secs); /* not multithread safe but we don't care */
if(config->tracetime)
- snprintf(timebuf, sizeof(timebuf), "%02d:%02d:%02d.%06d ",
- now->tm_hour, now->tm_min, now->tm_sec, tv.tv_usec);
+ snprintf(timebuf, sizeof(timebuf), "%02d:%02d:%02d.%06ld ",
+ now->tm_hour, now->tm_min, now->tm_sec, (long)tv.tv_usec);
else
timebuf[0]=0;
@@ -4927,7 +4927,7 @@ show_error:
}
#else
if((res!=CURLE_OK) && config->showerror) {
- fprintf(config->errors, "curl: (%d) %s\n", (int)res,
+ fprintf(config->errors, "curl: (%d) %s\n", res,
errorbuffer[0]? errorbuffer:
curl_easy_strerror((CURLcode)res));
if(CURLE_SSL_CACERT == res) {