From adbdfaa4eab1648c0618d369aa0389efec4b1bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Pettersen?= Date: Sun, 19 Dec 1999 20:29:30 +0000 Subject: [PATCH] use g_strcasecmp() --- ChangeLog | 7 +++++++ plug-ins/print/print-ps.c | 11 +++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f9a5e829f3..5373096318 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +1999-12-19 Asbjorn Pettersen + + * plug-ins/print/print-ps.c: use g_strcasecmp(). + + * plug-ins/print/print.h add , for + off_t type. OS/2 version. + 1999-12-19 Michael Natterer * configure.in: create help/C/toolbox/help/Makefile. diff --git a/plug-ins/print/print-ps.c b/plug-ins/print/print-ps.c index 760a1a605f..8fccf592ee 100644 --- a/plug-ins/print/print-ps.c +++ b/plug-ins/print/print-ps.c @@ -33,6 +33,9 @@ * Revision History: * * $Log$ + * Revision 1.16 1999/12/19 20:28:15 asbjoer + * use g_strcasecmp() + * * Revision 1.15 1999/12/16 19:44:01 olofk * Thu Dec 16 20:15:25 CET 1999 Olof S Kylande * @@ -474,7 +477,7 @@ ps_parameters(int model, /* 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(media_sizes[*count]) + 1); strcpy(valptrs[(*count)], media_sizes[*count]); @@ -1153,7 +1156,7 @@ ppd_find(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; @@ -1161,8 +1164,8 @@ ppd_find(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')