diff options
| author | Bjoern B. Brandenburg <bbb@koruna.cs.unc.edu> | 2009-05-05 00:07:28 -0400 |
|---|---|---|
| committer | Bjoern B. Brandenburg <bbb@koruna.cs.unc.edu> | 2009-05-05 00:07:28 -0400 |
| commit | e0ae63d3bcbb4daacbd5496bd74941183567a4c7 (patch) | |
| tree | 86b98cd30dfa810b7df295fc9f40779b243b1fc7 /src | |
| parent | f4c35486c84f86cf884900edbe578e7e7099dd59 (diff) | |
silence a bunch of 64bit-specific warnings
Diffstat (limited to 'src')
| -rw-r--r-- | src/ftdump.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ftdump.c b/src/ftdump.c index d06747a..599473b 100644 --- a/src/ftdump.c +++ b/src/ftdump.c | |||
| @@ -44,7 +44,7 @@ static void die(char* msg) | |||
| 44 | exit(1); | 44 | exit(1); |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | #define offset(type, member) ((unsigned int) &((type *) 0)->member) | 47 | #define offset(type, member) ((unsigned long) &((type *) 0)->member) |
| 48 | 48 | ||
| 49 | int main(int argc, char** argv) | 49 | int main(int argc, char** argv) |
| 50 | { | 50 | { |
| @@ -53,13 +53,13 @@ int main(int argc, char** argv) | |||
| 53 | struct timestamp* ts; | 53 | struct timestamp* ts; |
| 54 | 54 | ||
| 55 | printf("struct timestamp:\n" | 55 | printf("struct timestamp:\n" |
| 56 | "\t size = %3u\n" | 56 | "\t size = %3lu\n" |
| 57 | "\t offset(timestamp) = %3u\n" | 57 | "\t offset(timestamp) = %3lu\n" |
| 58 | "\t offset(seq_no) = %3u\n" | 58 | "\t offset(seq_no) = %3lu\n" |
| 59 | "\t offset(cpu) = %3u\n" | 59 | "\t offset(cpu) = %3lu\n" |
| 60 | "\t offset(event) = %3u\n" | 60 | "\t offset(event) = %3lu\n" |
| 61 | "\t offset(task_type) = %3u\n", | 61 | "\t offset(task_type) = %3lu\n", |
| 62 | (unsigned int) sizeof(struct timestamp), | 62 | (unsigned long) sizeof(struct timestamp), |
| 63 | offset(struct timestamp, timestamp), | 63 | offset(struct timestamp, timestamp), |
| 64 | offset(struct timestamp, seq_no), | 64 | offset(struct timestamp, seq_no), |
| 65 | offset(struct timestamp, cpu), | 65 | offset(struct timestamp, cpu), |
