Fix strcmp() and strncmp() to return proper standard positive/negative values for unequal strings. Current implementation is backwards (i.e. the functions are returning negative when should be positive and vice-versa). Currently all consumers of these functions only check the return value for ==0 or !=0 and so we can safely change the implementation without breaking things. Signed-off-by: Aaron Young <Aaron.Young@oracle.com> Modified-by: Michael Brown <mcb30@ipxe.org> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
173 |
|
173 |
|
174 |
|
174 |
|
175 |
|
175 |
|
176 |
|
|
|
|
176 |
|
|
177 |
|
177 |
|
178 |
|
178 |
|
179 |
|
179 |
|
|
|
||
195 |
|
195 |
|
196 |
|
196 |
|
197 |
|
197 |
|
198 |
|
|
|
199 |
|
|
|
|
198 |
|
|
|
199 |
|
|
200 |
|
200 |
|
201 |
|
201 |
|
202 |
|
202 |
|
|
|
||
88 |
|
88 |
|
89 |
|
89 |
|
90 |
|
90 |
|
|
91 |
|
|
91 |
|
92 |
|
92 |
|
93 |
|
93 |
|
94 |
|