|
@@ -173,7 +173,7 @@ int strncmp ( const char *first, const char *second, size_t max ) {
|
173
|
173
|
int diff;
|
174
|
174
|
|
175
|
175
|
for ( ; max-- ; first_bytes++, second_bytes++ ) {
|
176
|
|
- diff = ( *second_bytes - *first_bytes );
|
|
176
|
+ diff = ( *first_bytes - *second_bytes );
|
177
|
177
|
if ( diff )
|
178
|
178
|
return diff;
|
179
|
179
|
if ( ! *first_bytes )
|
|
@@ -195,8 +195,8 @@ int strcasecmp ( const char *first, const char *second ) {
|
195
|
195
|
int diff;
|
196
|
196
|
|
197
|
197
|
for ( ; ; first_bytes++, second_bytes++ ) {
|
198
|
|
- diff = ( toupper ( *second_bytes ) -
|
199
|
|
- toupper ( *first_bytes ) );
|
|
198
|
+ diff = ( toupper ( *first_bytes ) -
|
|
199
|
+ toupper ( *second_bytes ) );
|
200
|
200
|
if ( diff )
|
201
|
201
|
return diff;
|
202
|
202
|
if ( ! *first_bytes )
|