Commit 2e72f073 authored by Rik van Riel's avatar Rik van Riel Committed by Jeff Garzik

[wireless airo] make end-of-array test more portable

FYI statsLabels[] is an array of char*, so the fix below
is pretty obvious.
parent 1698c4e5
......@@ -3158,7 +3158,7 @@ static int proc_stats_rid_open( struct inode *inode,
readStatsRid(apriv, &stats, rid);
j = 0;
for(i=0; (int)statsLabels[i]!=-1 &&
for(i=0; statsLabels[i]!=(char *)-1 &&
i*4<stats.len; i++){
if (!statsLabels[i]) continue;
if (j+strlen(statsLabels[i])+16>4096) {
......
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