Changeset 4862

Show
Ignore:
Timestamp:
09/23/07 23:25:24 (7 years ago)
Author:
khali
Message:

Use strchr() instead of the deprecated index().
Patch from Bernhard Fischer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c-tools/trunk/tools/i2cbusses.c

    r4487 r4862  
    186186                                continue; 
    187187                        } 
    188                         if((border = index(x, '\n')) != NULL) 
     188                        if ((border = strchr(x, '\n')) != NULL) 
    189189                                *border = 0; 
    190190                        if(count++ == 0 && !procfmt)