aboutsummaryrefslogtreecommitdiff
path: root/lib/getinfo.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2013-07-11 17:03:14 +0200
committerYang Tse <yangsita@gmail.com>2013-07-11 17:07:36 +0200
commit0d9e65f79fc3a2c7d3bdb01a7a53558e05a65194 (patch)
tree22503966eaf6a9f4770ef42a4508b46d23ec9575 /lib/getinfo.c
parentc983aa9efc8f8c84e38a82aa34a5a103936a0a5f (diff)
getinfo.c: fix enumerated type mixed with another type
Diffstat (limited to 'lib/getinfo.c')
-rw-r--r--lib/getinfo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c
index 101ac90a4..3d09dc684 100644
--- a/lib/getinfo.c
+++ b/lib/getinfo.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -53,9 +53,9 @@ CURLcode Curl_initinfo(struct SessionHandle *data)
pro->t_redirect = 0;
info->httpcode = 0;
- info->httpversion=0;
- info->filetime=-1; /* -1 is an illegal time and thus means unknown */
- info->timecond=0;
+ info->httpversion = 0;
+ info->filetime = -1; /* -1 is an illegal time and thus means unknown */
+ info->timecond = FALSE;
if(info->contenttype)
free(info->contenttype);
@@ -186,7 +186,7 @@ static CURLcode getinfo_long(struct SessionHandle *data, CURLINFO info,
break;
case CURLINFO_CONDITION_UNMET:
/* return if the condition prevented the document to get transferred */
- *param_longp = data->info.timecond;
+ *param_longp = data->info.timecond ? 1L : 0L;
break;
case CURLINFO_RTSP_CLIENT_CSEQ:
*param_longp = data->state.rtsp_next_client_CSeq;