struct db_locked_file {
int fd;
- uint8 hash;
+ uint8_t hash;
const char *name;
const char *path;
struct db_file_ctx *parent;
/* Copy from statcache.c... */
-static uint32 fsh(const uint8 *p, int len)
+static uint32_t fsh(const uint8_t *p, int len)
{
- uint32 n = 0;
+ uint32_t n = 0;
int i;
for (i=0; i<len; i++) {
- n = ((n << 5) + n) ^ (uint32)(p[i]);
+ n = ((n << 5) + n) ^ (uint32_t)(p[i]);
}
return n;
}
result->delete_rec = db_file_delete;
result->key.dsize = key.dsize;
- result->key.dptr = (uint8 *)talloc_memdup(result, key.dptr, key.dsize);
+ result->key.dptr = (uint8_t *)talloc_memdup(result, key.dptr,
+ key.dsize);
if (result->key.dptr == NULL) {
DEBUG(0, ("talloc failed\n"));
TALLOC_FREE(result);
NTSTATUS status;
result->value.dsize = statbuf.st_ex_size;
- result->value.dptr = talloc_array(result, uint8,
+ result->value.dptr = talloc_array(result, uint8_t,
statbuf.st_ex_size);
if (result->value.dptr == NULL) {
DEBUG(1, ("talloc failed\n"));