Recent gcc versions generate more warnings when compiling util/zbin.c
on a 64-bit system:
util/zbin.c: In function `read_file':
util/zbin.c:85: warning: format `%d' expects type `int', but
argument 3 has type `size_t'
util/zbin.c:91: warning: format `%d' expects type `int', but
argument 3 has type `size_t'
util/zbin.c: In function `read_zinfo_file':
util/zbin.c:119: warning: format `%d' expects type `int', but
argument 4 has type `size_t'
util/zbin.c: In function `alloc_output_file':
util/zbin.c:134: warning: format `%d' expects type `int', but
argument 3 has type `size_t'
util/zbin.c: In function `process_zinfo_add':
util/zbin.c:244: warning: format `%d' expects type `int', but
argument 3 has type `size_t'
util/zbin.c:266: warning: format `%d' expects type `int', but
argument 7 has type `size_t'
util/zbin.c:286: warning: format `%#x' expects type `unsigned int',
but argument 7 has type `size_t'
util/zbin.c: In function `write_output_file':
util/zbin.c:348: warning: format `%d' expects type `int', but
argument 3 has type `size_t'
This patch eliminates these warnings.
Signed-off-by: Marty Connor <mdc@etherboot.org>
tags/v0.9.9
|
|
||
| 81 |
|
81 |
|
| 82 |
|
82 |
|
| 83 |
|
83 |
|
| 84 |
|
|
|
|
84 |
|
|
| 85 |
|
85 |
|
| 86 |
|
86 |
|
| 87 |
|
87 |
|
| 88 |
|
88 |
|
| 89 |
|
89 |
|
| 90 |
|
|
|
|
90 |
|
|
| 91 |
|
91 |
|
| 92 |
|
92 |
|
| 93 |
|
93 |
|
|
|
||
| 115 |
|
115 |
|
| 116 |
|
116 |
|
| 117 |
|
117 |
|
| 118 |
|
|
|
|
118 |
|
|
| 119 |
|
119 |
|
| 120 |
|
120 |
|
| 121 |
|
121 |
|
|
|
||
| 130 |
|
130 |
|
| 131 |
|
131 |
|
| 132 |
|
132 |
|
| 133 |
|
|
|
|
133 |
|
|
| 134 |
|
134 |
|
| 135 |
|
135 |
|
| 136 |
|
136 |
|
|
|
||
| 240 |
|
240 |
|
| 241 |
|
241 |
|
| 242 |
|
242 |
|
| 243 |
|
|
|
|
243 |
|
|
| 244 |
|
244 |
|
| 245 |
|
245 |
|
| 246 |
|
246 |
|
|
|
||
| 259 |
|
259 |
|
| 260 |
|
260 |
|
| 261 |
|
261 |
|
| 262 |
|
|
|
|
262 |
|
|
| 263 |
|
263 |
|
| 264 |
|
264 |
|
| 265 |
|
265 |
|
|
|
||
| 280 |
|
280 |
|
| 281 |
|
281 |
|
| 282 |
|
282 |
|
| 283 |
|
|
|
|
283 |
|
|
| 284 |
|
284 |
|
| 285 |
|
285 |
|
| 286 |
|
286 |
|
|
|
||
| 344 |
|
344 |
|
| 345 |
|
345 |
|
| 346 |
|
346 |
|
| 347 |
|
|
|
|
347 |
|
|
| 348 |
|
348 |
|
| 349 |
|
349 |
|
| 350 |
|
350 |
|