1 consolidate use of stdint types
3 Change u_int*_t to uint*_t for compatibility with a larger number of C
6 Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
8 Index: sp-oops-extract-0.0.7-1/src/oopslog.c
9 ===================================================================
10 --- sp-oops-extract-0.0.7-1.orig/src/oopslog.c
11 +++ sp-oops-extract-0.0.7-1/src/oopslog.c
12 @@ -64,8 +64,8 @@ static int try_to_check_for_bad_blocks(v
14 int main(const int argc, const char *argv[])
16 - u_int32_t *count, maxcount = 0xffffffff;
17 - u_int32_t *magic_ptr, magic_value = 0x5d005d00;
18 + uint32_t *count, maxcount = 0xffffffff;
19 + uint32_t *magic_ptr, magic_value = 0x5d005d00;
21 unsigned char *charbuf;
23 @@ -137,8 +137,8 @@ int main(const int argc, const char *arg
24 errx(-1, "%s is something weird", device);
27 - count = (u_int32_t *) buf;
28 - magic_ptr = (u_int32_t *) (buf + sizeof(u_int32_t));
29 + count = (uint32_t *) buf;
30 + magic_ptr = (uint32_t *) (buf + sizeof(uint32_t));
32 for (i = 0; i < (size / OOPS_PAGE_SIZE); i++) {
33 pread(fd, buf, OOPS_PAGE_SIZE, i * OOPS_PAGE_SIZE);