projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbf2ce3
)
Patch from Vernon Sauder.
author
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 5 Mar 2004 05:47:19 +0000
(
05:47
-0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 5 Mar 2004 05:47:19 +0000
(
05:47
-0000)
The off_t type is not a consistent size; it depends on the kernel options
(something about large file support). Therefore, the format string for
printing an address is not always the same.
libbb/dump.c
patch
|
blob
|
history
diff --git
a/libbb/dump.c
b/libbb/dump.c
index f071ea09c32496945bf938b52962bb20c3f83229..5046b926b39addf154e06d2d85952a7c583c73d5 100644
(file)
--- a/
libbb/dump.c
+++ b/
libbb/dump.c
@@
-650,7
+650,7
@@
static void display(void)
for (pr = endfu->nextpr; pr; pr = pr->nextpr) {
switch (pr->flags) {
case F_ADDRESS:
- (void) printf(pr->fmt, eaddress);
+ (void) printf(pr->fmt,
(unsigned int)
eaddress);
break;
case F_TEXT:
(void) printf(pr->fmt);