Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
openslp
openslp.ignorespaces.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openslp.ignorespaces.diff of Package openslp
--- common/slp_compare.c.orig 2010-10-01 11:17:13.000000000 +0000 +++ common/slp_compare.c 2010-10-01 11:26:52.000000000 +0000 @@ -105,6 +105,16 @@ int SLPCompareString(int str1len, /* <0 if s1 is less than str2 */ /*=========================================================================*/ { + /* strip leading/trailing while space */ + while (str1len && (*str1 == ' ' || *str1 == '\t' || *str1 == '\r' || *str1 == '\n')) + str1++, str1len--; + while (str1len && (str1[str1len - 1] == ' ' || str1[str1len - 1] == '\t' || str1[str1len - 1] == '\r' || str1[str1len - 1] == '\n')) + str1len--; + while (str2len && (*str2 == ' ' || *str2 == '\t' || *str2 == '\r' || *str2 == '\n')) + str2++, str2len--; + while (str2len && (str2[str2len - 1] == ' ' || str2[str2len - 1] == '\t' || str2[str2len - 1] == '\r' || str2[str2len - 1] == '\n')) + str2len--; + /* TODO: fold whitespace and handle escapes*/ if(str1len == str2len) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor