From e59c8d8fa97a1b2a0143b5aac9c0d437af07ea7a Mon Sep 17 00:00:00 2001 From: hackbard Date: Wed, 10 Nov 2004 10:44:51 +0000 Subject: [PATCH] casting stuff --- nlsop_server.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nlsop_server.c b/nlsop_server.c index 4f02c1f..747aa25 100644 --- a/nlsop_server.c +++ b/nlsop_server.c @@ -129,11 +129,12 @@ int save_job(t_net *net,int channel,t_job *job,unsigned char dc) { printf("receiving data from client (%d)\n",job->size); data=DATA_OK; - ret=network_receive_chan(net,channel,&d3l,sizeof(d3_lattice)); + ret=network_receive_chan(net,channel,(unsigned char *)&d3l, + sizeof(d3_lattice)); network_send_chan(net,channel,&data,sizeof(unsigned char)); printf("debug: got d3_lattice\n"); - ret=network_receive_chan(net,channel,&info,sizeof(info)); + ret=network_receive_chan(net,channel,(unsigned char *)&info,sizeof(info)); network_send_chan(net,channel,&data,sizeof(unsigned char)); printf("debug: got info\n"); -- 2.20.1