Commit 7a2bd216 authored by Asbjørn Pettersen's avatar Asbjørn Pettersen
Browse files

use g_strncasecmp()

parent 681f12f1
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>
 
* 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)
continue;
if (strcasecmp(lname, name) == 0)
if (g_strcasecmp(lname, name) == 0)
{
valptrs[(*count)] = malloc(strlen(loption) + 1);
strcpy(valptrs[(*count)], loption);
......@@ -705,7 +705,7 @@ ppd_find(const char *ppd_file, /* I - Name of PPD file */
if (line[0] != '*')
continue;
if (strncasecmp(line, "*OrderDependency:", 17) == 0 && order != NULL)
if (g_strncasecmp(line, "*OrderDependency:", 17) == 0 && order != NULL)
{
sscanf(line, "%*s%d", order);
continue;
......@@ -713,8 +713,8 @@ ppd_find(const char *ppd_file, /* I - Name of PPD file */
else if (sscanf(line, "*%s %[^/:]", lname, loption) != 2)
continue;
if (strcasecmp(lname, name) == 0 &&
strcasecmp(loption, option) == 0)
if (g_strcasecmp(lname, name) == 0 &&
g_strcasecmp(loption, option) == 0)
{
opt = strchr(line, ':') + 1;
while (*opt == ' ' || *opt == '\t')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment