Skip to content

Commit

Permalink
trival
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Sep 14, 2017
1 parent 761de18 commit 27135e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
*/
#include "rs.h"

void rs_encode(void *code,void *data[],int size)
void rs_encode(void *code,char *data[],int size)
{
int k=get_k(code);
int n=get_n(code);
for(int i=k;i<n;i++)
{
fec_encode(code, data, data[i],i, size);
fec_encode(code, (void **)data, data[i],i, size);
}

return ;
}

int rs_decode(void *code,void *data[],int size)
int rs_decode(void *code,char *data[],int size)
{
int k=get_k(code);
int n=get_n(code);
Expand All @@ -40,5 +40,5 @@ int rs_decode(void *code,void *data[],int size)
else
data[i]=0;
}
return fec_decode(code,data,index,size);
return fec_decode(code,(void**)data,index,size);
}

0 comments on commit 27135e5

Please sign in to comment.