tt/mini_isam: add new isam_prototypes.h include file and fix up problems
There were a variety of potential 64b problems due to the complete lack of prototype declarations. So, we add a file, isam_prototypes.h, generated mostly by the 'cproto' tool. We also fixed up some errors that having proper prototypes pointed out, mainly in passing ints where pointers were expected and vice versa. The iserase() function was supposed to accept a char *, but was defined as only accepting a char. Fun stuff like that.
This commit is contained in:
@@ -62,7 +62,7 @@ struct hashtable {
|
||||
|
||||
static int _hashisfhandle();
|
||||
|
||||
static mrused_last = 0; /* stamp generator */
|
||||
static int mrused_last = 0; /* stamp generator */
|
||||
|
||||
|
||||
/*
|
||||
@@ -219,7 +219,7 @@ _hashisfhandle(Bytearray *isfhandle)
|
||||
|
||||
while (len-- > 0) {
|
||||
h = (h << 4) + (*p++);
|
||||
if (g = h&0xf0000000) {
|
||||
if ((g = (h & 0xf0000000))) {
|
||||
h = h ^ (g >> 24);
|
||||
h = h ^ g;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user