Skip to content

Commit

Permalink
Update to uint style rather than BSD style u_int
Browse files Browse the repository at this point in the history
  • Loading branch information
crees committed May 25, 2013
1 parent a562918 commit 947dba4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/large_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dup_str(const char *str) {
return ns;
}

static u_int32_t
static uint32_t
hash_func1(const void *key, size_t length) {
size_t i = length;
unsigned int hash = 0;
Expand All @@ -50,7 +50,7 @@ hash_func1(const void *key, size_t length) {
c -= a; c -= b; c ^= (b>>15); \
}

typedef u_int32_t ub4;
typedef uint32_t ub4;

static unsigned int
hash_func_tc(const void *key, size_t length)
Expand Down Expand Up @@ -98,7 +98,7 @@ hash_func_tc(const void *key, size_t length)


static int
time_it(cfuhash_function_t hf, double *elapsed_time, u_int32_t num_tests) {
time_it(cfuhash_function_t hf, double *elapsed_time, uint32_t num_tests) {
cfuhash_table_t *hash = cfuhash_new_with_initial_size(30);
char key[32];
char value[32];
Expand Down Expand Up @@ -135,7 +135,7 @@ time_it(cfuhash_function_t hf, double *elapsed_time, u_int32_t num_tests) {

int main(int argc, char **argv) {
double elapsed_time = 0;
u_int32_t num_tests = 3000000;
uint32_t num_tests = 3000000;

(void)argc;
(void)argv;
Expand Down

0 comments on commit 947dba4

Please sign in to comment.