Commit 618a24ce authored by Timothy Stack's avatar Timothy Stack
Browse files

Move decl up, C++ not allowed here.

parent 06e90508
...@@ -550,6 +550,7 @@ int get_ldavg(char *buf, void *data) { ...@@ -550,6 +550,7 @@ int get_ldavg(char *buf, void *data) {
int get_active_bits(SLOTHD_PACKET *pkt, SLOTHD_PACKET *opkt) { int get_active_bits(SLOTHD_PACKET *pkt, SLOTHD_PACKET *opkt) {
u_long od, id;
int i; int i;
pkt->actbits = 0; pkt->actbits = 0;
...@@ -573,7 +574,6 @@ int get_active_bits(SLOTHD_PACKET *pkt, SLOTHD_PACKET *opkt) { ...@@ -573,7 +574,6 @@ int get_active_bits(SLOTHD_PACKET *pkt, SLOTHD_PACKET *opkt) {
* Have the packet counters exceeded the threshold? Make sure we don't * Have the packet counters exceeded the threshold? Make sure we don't
* count the incoming packets on the control net interface. * count the incoming packets on the control net interface.
*/ */
u_long od, id;
for (i = 0; i < pkt->ifcnt; ++i) { for (i = 0; i < pkt->ifcnt; ++i) {
if (strcmp(parms->cifname, pkt->ifaces[i].ifname) == 0) { if (strcmp(parms->cifname, pkt->ifaces[i].ifname) == 0) {
if ((od = pkt->ifaces[i].opkts - opkt->ifaces[i].opkts) >= if ((od = pkt->ifaces[i].opkts - opkt->ifaces[i].opkts) >=
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment