Changed u_int32 to uint32_t to align with C99.