mirror of https://github.com/GNOME/gimp.git
use g_strncasecmp()
This commit is contained in:
parent
681f12f101
commit
7a2bd21658
|
@ -1,3 +1,8 @@
|
||||||
|
2000-09-15 Asbjorn Pettersen <asbjornP@dualog.no>
|
||||||
|
|
||||||
|
* plug-ins/print/print-ps.c (ps_parameters): use g_strncasecmp()
|
||||||
|
instead of strncasecmp(). More portable.
|
||||||
|
|
||||||
2000-09-15 Kevin Turner <acapnotic@users.sourceforge.net>
|
2000-09-15 Kevin Turner <acapnotic@users.sourceforge.net>
|
||||||
|
|
||||||
* app/gdisplay_color_ui.c (color_display_cancel_callback):
|
* app/gdisplay_color_ui.c (color_display_cancel_callback):
|
||||||
|
|
|
@ -132,7 +132,7 @@ ps_parameters(const printer_t *printer, /* I - Printer model */
|
||||||
if (sscanf(line, "*%s %[^/:]", lname, loption) != 2)
|
if (sscanf(line, "*%s %[^/:]", lname, loption) != 2)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (strcasecmp(lname, name) == 0)
|
if (g_strcasecmp(lname, name) == 0)
|
||||||
{
|
{
|
||||||
valptrs[(*count)] = malloc(strlen(loption) + 1);
|
valptrs[(*count)] = malloc(strlen(loption) + 1);
|
||||||
strcpy(valptrs[(*count)], loption);
|
strcpy(valptrs[(*count)], loption);
|
||||||
|
@ -705,7 +705,7 @@ ppd_find(const char *ppd_file, /* I - Name of PPD file */
|
||||||
if (line[0] != '*')
|
if (line[0] != '*')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (strncasecmp(line, "*OrderDependency:", 17) == 0 && order != NULL)
|
if (g_strncasecmp(line, "*OrderDependency:", 17) == 0 && order != NULL)
|
||||||
{
|
{
|
||||||
sscanf(line, "%*s%d", order);
|
sscanf(line, "%*s%d", order);
|
||||||
continue;
|
continue;
|
||||||
|
@ -713,8 +713,8 @@ ppd_find(const char *ppd_file, /* I - Name of PPD file */
|
||||||
else if (sscanf(line, "*%s %[^/:]", lname, loption) != 2)
|
else if (sscanf(line, "*%s %[^/:]", lname, loption) != 2)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (strcasecmp(lname, name) == 0 &&
|
if (g_strcasecmp(lname, name) == 0 &&
|
||||||
strcasecmp(loption, option) == 0)
|
g_strcasecmp(loption, option) == 0)
|
||||||
{
|
{
|
||||||
opt = strchr(line, ':') + 1;
|
opt = strchr(line, ':') + 1;
|
||||||
while (*opt == ' ' || *opt == '\t')
|
while (*opt == ' ' || *opt == '\t')
|
||||||
|
|
Loading…
Reference in New Issue