PERFORCE change 103316 for review
Paolo Pisati
piso at FreeBSD.org
Sun Aug 6 09:27:28 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=103316
Change 103316 by piso at piso_newluxor on 2006/08/06 09:27:11
And if i updated correctly the loop variable, the stray
logic will work even better: this makes my re happy again.
Affected files ...
.. //depot/projects/soc2006/intr_filter/i386/i386/intr_machdep.c#10 edit
Differences ...
==== //depot/projects/soc2006/intr_filter/i386/i386/intr_machdep.c#10 (text+ko) ====
@@ -173,9 +173,10 @@
walk_intr_src(void) {
static int i = 0;
- for (; i<NUM_IO_INTS; i++) {
- if (interrupt_sources[i] != NULL)
- return (interrupt_sources[i]);
+ for (; i<NUM_IO_INTS; ) {
+ int j = i++;
+ if (interrupt_sources[j] != NULL)
+ return (interrupt_sources[j]);
}
i = 0;
return (NULL);
More information about the p4-projects
mailing list