|
1 Index: lib/rtapelib.c |
|
2 --- lib/rtapelib.c.orig 2009-03-19 12:47:19 +0100 |
|
3 +++ lib/rtapelib.c 2009-06-20 17:36:22 +0200 |
|
4 @@ -628,7 +628,7 @@ |
|
5 { |
|
6 char command_buffer[COMMAND_BUFFER_SIZE]; |
|
7 char operand_buffer[UINTMAX_STRSIZE_BOUND]; |
|
8 - uintmax_t u = offset < 0 ? - (uintmax_t) offset : (uintmax_t) offset; |
|
9 + unsigned long u = offset < 0 ? - (unsigned long) offset : (unsigned long) offset; |
|
10 char *p = operand_buffer + sizeof operand_buffer; |
|
11 |
|
12 *--p = 0; |
|
13 @@ -670,9 +670,9 @@ |
|
14 { |
|
15 char command_buffer[COMMAND_BUFFER_SIZE]; |
|
16 char operand_buffer[UINTMAX_STRSIZE_BOUND]; |
|
17 - uintmax_t u = (((struct mtop *) argument)->mt_count < 0 |
|
18 - ? - (uintmax_t) ((struct mtop *) argument)->mt_count |
|
19 - : (uintmax_t) ((struct mtop *) argument)->mt_count); |
|
20 + unsigned long u = (((struct mtop *) argument)->mt_count < 0 |
|
21 + ? - (unsigned long) ((struct mtop *) argument)->mt_count |
|
22 + : (unsigned long) ((struct mtop *) argument)->mt_count); |
|
23 char *p = operand_buffer + sizeof operand_buffer; |
|
24 |
|
25 *--p = 0; |
|
26 Index: lib/system.h |
|
27 --- lib/system.h.orig 2009-06-20 10:29:22 +0200 |
|
28 +++ lib/system.h 2009-06-20 17:36:22 +0200 |
|
29 @@ -425,7 +425,7 @@ |
|
30 |
|
31 #include <intprops.h> |
|
32 |
|
33 -#define UINTMAX_STRSIZE_BOUND INT_BUFSIZE_BOUND (uintmax_t) |
|
34 +#define UINTMAX_STRSIZE_BOUND INT_BUFSIZE_BOUND (unsigned long) |
|
35 |
|
36 /* Prototypes for external functions. */ |
|
37 |
|
38 Index: src/userspec.c |
|
39 --- src/userspec.c.orig 2009-02-14 19:15:50 +0100 |
|
40 +++ src/userspec.c 2009-06-20 17:41:54 +0200 |
|
41 @@ -20,7 +20,6 @@ |
|
42 /* Written by David MacKenzie <djm@gnu.ai.mit.edu>. */ |
|
43 |
|
44 #include <system.h> |
|
45 -#include <alloca.h> |
|
46 #include <stdio.h> |
|
47 #include <ctype.h> |
|
48 #include <sys/types.h> |