1 --- a/bsdiff.c 2005-08-17 00:13:52.000000000 +0200
2 +++ b/bsdiff.c 2016-02-21 01:39:31.157915765 +0100
4 if(start+len>kk) split(I,V,kk,start+len-kk,h);
7 -static void qsufsort(off_t *I,off_t *V,u_char *old,off_t oldsize)
8 +static void qsufsort(off_t *I,off_t *V,unsigned char *old,off_t oldsize)
13 for(i=0;i<oldsize+1;i++) I[V[i]]=i;
16 -static off_t matchlen(u_char *old,off_t oldsize,u_char *new,off_t newsize)
17 +static off_t matchlen(unsigned char *old,off_t oldsize,unsigned char *new,off_t newsize)
25 -static off_t search(off_t *I,u_char *old,off_t oldsize,
26 - u_char *new,off_t newsize,off_t st,off_t en,off_t *pos)
27 +static off_t search(off_t *I,unsigned char *old,off_t oldsize,
28 + unsigned char *new,off_t newsize,off_t st,off_t en,off_t *pos)
36 -static void offtout(off_t x,u_char *buf)
37 +static void offtout(off_t x,unsigned char *buf)
42 int main(int argc,char *argv[])
46 + unsigned char *old,*new;
47 off_t oldsize,newsize;
51 off_t overlap,Ss,lens;
57 + unsigned char *db,*eb;
58 + unsigned char buf[8];
59 + unsigned char header[32];
63 --- a/bspatch.c 2005-08-17 00:14:00.000000000 +0200
64 +++ b/bspatch.c 2016-02-21 01:39:29.753859970 +0100
69 -static off_t offtin(u_char *buf)
70 +static off_t offtin(unsigned char *buf)
76 ssize_t oldsize,newsize;
77 ssize_t bzctrllen,bzdatalen;
78 - u_char header[32],buf[8];
80 + unsigned char header[32],buf[8];
81 + unsigned char *old, *new;