234 |
|
if(strcmp(ksp->ks_module, "md")==0) continue; |
235 |
|
if((kstat_read(kc, ksp, &kios))==-1) continue; |
236 |
|
strncpy(device_name, ksp->ks_name, sizeof device_name); |
237 |
< |
for(x=0;x<(sizeof device_name);x++){ |
237 |
> |
for(x=0;x<(int)(sizeof device_name);x++){ |
238 |
|
if( isdigit((int)device_name[x]) ) break; |
239 |
|
} |
240 |
|
if(x == sizeof device_name) x--; |
294 |
|
return match_string; |
295 |
|
} |
296 |
|
|
297 |
< |
/* FIXME do Linux and Cygwin always have atoll? */ |
297 |
> |
/* Cygwin (without a recent newlib) doesn't have atoll */ |
298 |
|
#ifndef HAVE_ATOLL |
299 |
|
static long long atoll(const char *s) { |
300 |
|
long long value = 0; |