diff options
author | Rob Landley <rob@landley.net> | 2006-08-06 20:41:11 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-08-06 20:41:11 +0000 |
commit | 7250915d78e3040b4aeb98e6e56bb1650b038d9f (patch) | |
tree | 64dc8585973ded370f6a9aa81090c6f9c9cee0c6 /util-linux/readprofile.c | |
parent | 236c6755d2532cc20e31f4ff4f19cdaa4bde078c (diff) | |
download | busybox-w32-7250915d78e3040b4aeb98e6e56bb1650b038d9f.tar.gz busybox-w32-7250915d78e3040b4aeb98e6e56bb1650b038d9f.tar.bz2 busybox-w32-7250915d78e3040b4aeb98e6e56bb1650b038d9f.zip |
Make a warning go away on 64-bit systems.
Diffstat (limited to 'util-linux/readprofile.c')
-rw-r--r-- | util-linux/readprofile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c index aaa419a3c..fb658c87f 100644 --- a/util-linux/readprofile.c +++ b/util-linux/readprofile.c | |||
@@ -47,7 +47,7 @@ int readprofile_main(int argc, char **argv) | |||
47 | int proFd; | 47 | int proFd; |
48 | const char *mapFile, *proFile, *mult=0; | 48 | const char *mapFile, *proFile, *mult=0; |
49 | unsigned long len=0, indx=1; | 49 | unsigned long len=0, indx=1; |
50 | unsigned long long add0=0; | 50 | uint64_t add0=0; |
51 | unsigned int step; | 51 | unsigned int step; |
52 | unsigned int *buf, total, fn_len; | 52 | unsigned int *buf, total, fn_len; |
53 | unsigned long long fn_add, next_add; /* current and next address */ | 53 | unsigned long long fn_add, next_add; /* current and next address */ |
@@ -223,7 +223,7 @@ int readprofile_main(int argc, char **argv) | |||
223 | printf ("%s:\n", fn_name); | 223 | printf ("%s:\n", fn_name); |
224 | header_printed = 1; | 224 | header_printed = 1; |
225 | } | 225 | } |
226 | printf ("\t%llx\t%u\n", (indx - 1)*step + add0, buf[indx]); | 226 | printf ("\t%"PRIx64"\t%u\n", (indx - 1)*step + add0, buf[indx]); |
227 | } | 227 | } |
228 | this += buf[indx++]; | 228 | this += buf[indx++]; |
229 | } | 229 | } |