first shot at "addrequest" support

This commit is contained in:
leitner
2007-06-28 22:17:33 +00:00
parent fefbe77ba0
commit 35f2b3b745
68 changed files with 897 additions and 339 deletions

View File

@@ -3,7 +3,7 @@
#include "uint32.h"
#include "bstr.h"
int bstr_diff2(const char* a,const char* b,unsigned int blen) {
int bstr_diff2(const char* a,const char* b,size_t blen) {
const char* A,* B;
int j;
/* like str_diff, just for bstrs */
@@ -23,7 +23,7 @@ int bstr_diff2(const char* a,const char* b,unsigned int blen) {
} else
if (b==B)
return 1;
if ((j=(*a-*b))) break;
if ((j=((unsigned char)*a-(unsigned char)*b))) break;
++a; ++b;
}
return j;