|
Lines 34-41
int rpmvercmp(const char * a, const char * b)
Link Here
|
| 34 |
|
34 |
|
| 35 |
/* loop through each version segment of str1 and str2 and compare them */ |
35 |
/* loop through each version segment of str1 and str2 and compare them */ |
| 36 |
while (*one && *two) { |
36 |
while (*one && *two) { |
| 37 |
while (*one && !xisalnum(*one)) one++; |
37 |
if ((*one && !xisalnum(*one)) && (*two && !xisalnum(*two))) { |
| 38 |
while (*two && !xisalnum(*two)) two++; |
38 |
while (*one && !xisalnum(*one)) one++; |
|
|
39 |
while (*two && !xisalnum(*two)) two++; |
| 40 |
} |
| 39 |
|
41 |
|
| 40 |
if ( !*one && !*two ) |
42 |
if ( !*one && !*two ) |
| 41 |
return 0; |
43 |
return 0; |