"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "options.c" between
foomatic-filters-4.0.17.tar.gz and foomatic-filters-4.0-20160212.tar.gz

About: Foomatic - The XML-based printer/driver database integrates free software printer drivers with all common spoolers (CUPS, LPRng, LPD, GNUlpr, PPR, PDQ, CPS, etc.) in UNIX. Development version.

options.c  (foomatic-filters-4.0.17):options.c  (foomatic-filters-4.0-20160212)
skipping to change at line 1627 skipping to change at line 1627
p = strrchr(value->data, '\"'); p = strrchr(value->data, '\"');
if (!p) { if (!p) {
_log("Invalid line: \"%s: ...\"\n", key); _log("Invalid line: \"%s: ...\"\n", key);
continue; continue;
} }
*p = '\0'; *p = '\0';
} }
/* remove last newline */ /* remove last newline */
dstrremovenewline(value); dstrremovenewline(value);
/* remove last whitespace */
dstrtrim_right(value);
/* process key/value pairs */ /* process key/value pairs */
if (strcmp(key, "NickName") == 0) { if (strcmp(key, "NickName") == 0) {
unhtmlify(printer_model, 256, value->data); unhtmlify(printer_model, 256, value->data);
} }
else if (strcmp(key, "FoomaticIDs") == 0) { else if (strcmp(key, "FoomaticIDs") == 0) {
/* *FoomaticIDs: <printer ID> <driver ID> */ /* *FoomaticIDs: <printer ID> <driver ID> */
sscanf(value->data, "%*[ \t]%127[^ \t]%*[ \t]%127[^ \t\n]", sscanf(value->data, "%*[ \t]%127[^ \t]%*[ \t]%127[^ \t\n]",
printer_id, driver); printer_id, driver);
} }
else if (strcmp(key, "FoomaticRIPPostPipe") == 0) { else if (strcmp(key, "FoomaticRIPPostPipe") == 0) {
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS