aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-03-20 18:28:24 +0100
committerYang Tse <yangsita@gmail.com>2012-03-20 18:28:24 +0100
commitc6825b7a6b5e8798bc861b3d280430e8149e7298 (patch)
tree7647999b7351ab4330f2218622fcfbc1469cb975 /tests
parente6a89cb6c4f0ed51a41425cf78a56394f397c5e5 (diff)
fix several compiler warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/testtrace.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/libtest/testtrace.c b/tests/libtest/testtrace.c
index 5cb5fec5e..b13c54e30 100644
--- a/tests/libtest/testtrace.c
+++ b/tests/libtest/testtrace.c
@@ -91,11 +91,13 @@ int libtest_debug_cb(CURL *handle, curl_infotype type,
struct timeval tv;
struct tm *now;
char timebuf[20];
+ char *timestr;
time_t secs;
(void)handle;
timebuf[0] = '\0';
+ timestr = &timebuf[0];
if(trace_cfg->tracetime) {
tv = tutil_tvnow();
@@ -111,7 +113,7 @@ int libtest_debug_cb(CURL *handle, curl_infotype type,
switch (type) {
case CURLINFO_TEXT:
- fprintf(stderr, "%s== Info: %s", &timebuf[0], data);
+ fprintf(stderr, "%s== Info: %s", timestr, data);
default: /* in case a new one is introduced to shock us */
return 0;