Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
rarian
rarian-no-warning-X-lines.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rarian-no-warning-X-lines.patch of Package rarian
Index: rarian-0.8.1/librarian/rarian-reg-full.c =================================================================== --- rarian-0.8.1.orig/librarian/rarian-reg-full.c +++ rarian-0.8.1/librarian/rarian-reg-full.c @@ -338,6 +338,8 @@ process_pair_full (RrnRegFull *reg, char } } else if (!strcmp (key, "Icon")){ reg->icon = strdup (value); + } else if (!strncmp (key, "X-", 2)) { + /* ignore */ } else { fprintf (stderr, "WARNING: Unknown element %s: %s\n", key, value); } @@ -627,6 +629,8 @@ process_sect_pair_full (RrnSectFull *sec sect->uri = rrn_full_add_field (sect->uri, value, lang); } else if (!strcmp (key, "SectionDocument") || !strcmp (key, "sectiondocument")) { sect->owner = strdup (value); + } else if (!strncmp (key, "X-", 2)) { + /* ignore */ } else { fprintf (stderr, "WARNING: Unknown element for section %s: %s\n", key, value); } Index: rarian-0.8.1/librarian/rarian-reg-utils.c =================================================================== --- rarian-0.8.1.orig/librarian/rarian-reg-utils.c +++ rarian-0.8.1/librarian/rarian-reg-utils.c @@ -505,6 +505,8 @@ process_pair (RrnReg *reg, char *key, ch reg->identifier = strdup (value); } else if (!strcmp (key, "X-DOC-Weight")) { reg->weight = atoi (value); + } else if (!strncmp (key, "X-", 2)) { + /* ignore */ } else { fprintf (stderr, "WARNING: Unknown element %s: %s\n", key, value); } @@ -847,6 +849,8 @@ process_sect_pair (RrnSect *sect, char * process_field (&(sect->uri), NULL, key, value); } else if (!strcmp (key, "SectionDocument") || !strcmp (key, "sectiondocument")) { sect->owner = strdup (value); + } else if (!strncmp (key, "X-", 2)) { + /* ignore */ } else { fprintf (stderr, "WARNING: Unknown element for section %s: %s\n", key, value); }
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