]> hackdaworld.org Git - physik/nlsop.git/commitdiff
casting stuff
authorhackbard <hackbard>
Wed, 10 Nov 2004 10:44:51 +0000 (10:44 +0000)
committerhackbard <hackbard>
Wed, 10 Nov 2004 10:44:51 +0000 (10:44 +0000)
nlsop_server.c

index 4f02c1f483bafee45b4dc3d149fbb89b246d5b26..747aa25e58b1efcca815b4fc5cfeeeea26b26b8f 100644 (file)
@@ -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");