git://git.onelab.eu
/
ipfw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e189c9
)
Avoid a possible compiler bug while using a macro with variable arguments.
author
marta
<marta@8c455092-636d-4788-adf5-e71def0336e8>
Thu, 7 Jan 2010 11:18:55 +0000
(11:18 +0000)
committer
marta
<marta@8c455092-636d-4788-adf5-e71def0336e8>
Thu, 7 Jan 2010 11:18:55 +0000
(11:18 +0000)
dummynet2/radix.c
patch
|
blob
|
history
diff --git
a/dummynet2/radix.c
b/dummynet2/radix.c
index
5d508e4
..
6e256d3
100644
(file)
--- a/
dummynet2/radix.c
+++ b/
dummynet2/radix.c
@@
-934,10
+934,13
@@
on1:
MKFree(m);
m = mm;
}
- if (m)
- log(LOG_ERR,
- "rn_delete: Orphaned Mask %p at %p\n",
- (void *)m, (void *)x);
+ if (m) {
+ /* these two variables are used to avoid a possible
+ compiler bug while using a macro with variable arguments */
+ void *log_m = m;
+ void *log_x = x;
+ log(LOG_ERR, "rn_delete: Orphaned Mask %p at %p\n", log_m, log_x);
+ }
}
}
/*