aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-14 16:37:22 +0000
committerYang Tse <yangsita@gmail.com>2010-02-14 16:37:22 +0000
commit2268657272e591948467135dcd713bd80e3212b3 (patch)
tree02a6e8137036063064bbcc8bc484cd06ed683aeb
parent68d83a8142e52643cc98d692dce54a49d9e2c386 (diff)
fix compiler warning
-rw-r--r--tests/server/rtspd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/rtspd.c b/tests/server/rtspd.c
index c2910e07a..efa0e0b4e 100644
--- a/tests/server/rtspd.c
+++ b/tests/server/rtspd.c
@@ -957,13 +957,13 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
return 0;
}
else {
- error = getpart(&buffer, &count, "reply", partbuf, stream);
+ error = getpart(&ptr, &count, "reply", partbuf, stream);
fclose(stream);
if(error) {
logmsg("getpart() failed with error: %d", error);
return 0;
}
- ptr = (char *)buffer;
+ buffer = ptr;
}
if(got_exit_signal) {