]>
Commit | Line | Data |
---|---|---|
90234bf2 JB |
1 | stat already declared as different kind of symbol |
2 | --- LiTE-0.8.10/examples/dfbspy.c.orig 2008-06-21 01:22:49.000000000 +0200 | |
3 | +++ LiTE-0.8.10/examples/dfbspy.c 2012-01-01 11:01:33.872553222 +0100 | |
4 | @@ -89,9 +89,9 @@ | |
5 | ||
6 | /**************************************************************************************************/ | |
7 | ||
8 | -#define CALC(x) stat.x = (int)(((s.x - last_stat.x) * 1000 / (float) diff) + 0.5f) | |
9 | +#define CALC(x) cur_stat.x = (int)(((s.x - last_stat.x) * 1000 / (float) diff) + 0.5f) | |
10 | ||
11 | -static FusionStat last_stat, stat; | |
12 | +static FusionStat last_stat, cur_stat; | |
13 | static long long last_millis; | |
14 | ||
15 | static int | |
16 | @@ -145,14 +145,14 @@ | |
17 | void (*update)( LiteLabel *label, void *ctx ); | |
18 | void *ctx; | |
19 | } list[] = { | |
20 | - { "lease/purchase", update_number, &stat.lease_purchase }, | |
21 | - { "cede", update_number, &stat.cede }, | |
22 | - { "attach", update_number, &stat.attach }, | |
23 | - { "detach", update_number, &stat.detach }, | |
24 | - { "ref up", update_number, &stat.ref_up }, | |
25 | - { "ref down", update_number, &stat.ref_down }, | |
26 | - { "prevail/swoop", update_number, &stat.prevail_swoop }, | |
27 | - { "dismiss", update_number, &stat.dismiss } | |
28 | + { "lease/purchase", update_number, &cur_stat.lease_purchase }, | |
29 | + { "cede", update_number, &cur_stat.cede }, | |
30 | + { "attach", update_number, &cur_stat.attach }, | |
31 | + { "detach", update_number, &cur_stat.detach }, | |
32 | + { "ref up", update_number, &cur_stat.ref_up }, | |
33 | + { "ref down", update_number, &cur_stat.ref_down }, | |
34 | + { "prevail/swoop", update_number, &cur_stat.prevail_swoop }, | |
35 | + { "dismiss", update_number, &cur_stat.dismiss } | |
36 | }; | |
37 | ||
38 | #define NUM_LIST (sizeof(list)/sizeof(list[0])) |