aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-12-14 14:02:43 +0000
committerYang Tse <yangsita@gmail.com>2009-12-14 14:02:43 +0000
commitb0f548fb56d61a44a1f689b25955140c01e1821b (patch)
tree67cc5bcfddbf5318f8efac0d382b6ac89205e06f /lib/ftp.c
parent364d76aca717432ce40b69fd951de71efdc18d9b (diff)
Fix compiler warnings
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 331d17e9d..60abc9cc0 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -381,8 +381,10 @@ static CURLcode ftp_readresp(curl_socket_t sockfd,
size_t *size) /* size of the response */
{
struct connectdata *conn = pp->conn;
+#if defined(HAVE_KRB4) || defined(HAVE_GSSAPI)
struct SessionHandle *data = conn->data;
char * const buf = data->state.buffer;
+#endif
CURLcode result = CURLE_OK;
int code;