summaryrefslogtreecommitdiffstats
path: root/src/pcap.c
diff options
context:
space:
mode:
authorOliver Stöneberg <oliverst@online.de>2011-04-11 11:17:32 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-04-11 11:18:57 +0200
commit166ee451c500543db49e789b9bb2ed16db052f94 (patch)
tree0a03ff6ede9e85adcd32d51d7bd01019d003cfdd /src/pcap.c
parent46475dfa2f246c4a831289bc7625c896eafa6458 (diff)
downloadlibssh-166ee451c500543db49e789b9bb2ed16db052f94.tar.gz
libssh-166ee451c500543db49e789b9bb2ed16db052f94.tar.xz
libssh-166ee451c500543db49e789b9bb2ed16db052f94.zip
build: Fixed some VS2010 problems.
Diffstat (limited to 'src/pcap.c')
-rw-r--r--src/pcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcap.c b/src/pcap.c
index 95db72d..f81c955 100644
--- a/src/pcap.c
+++ b/src/pcap.c
@@ -125,7 +125,7 @@ struct ssh_pcap_file_struct {
ssh_pcap_file ssh_pcap_file_new(){
struct ssh_pcap_file_struct *pcap;
- pcap = malloc(sizeof(struct ssh_pcap_file_struct));
+ pcap = (struct ssh_pcap_file_struct *) malloc(sizeof(struct ssh_pcap_file_struct));
if (pcap == NULL) {
return NULL;
}
@@ -228,7 +228,7 @@ void ssh_pcap_file_free(ssh_pcap_file pcap){
*/
ssh_pcap_context ssh_pcap_context_new(ssh_session session){
- ssh_pcap_context ctx=malloc(sizeof(struct ssh_pcap_context_struct));
+ ssh_pcap_context ctx = (struct ssh_pcap_context_struct *) malloc(sizeof(struct ssh_pcap_context_struct));
if(ctx==NULL){
ssh_set_error_oom(session);
return NULL;