summaryrefslogtreecommitdiff
path: root/source3/utils/make_printerdef.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-07-04 07:36:09 +0000
committerAndrew Tridgell <tridge@samba.org>2001-07-04 07:36:09 +0000
commit527e824293ee934ca5da0ef5424efe5ab7757248 (patch)
treedd86fab3b0ba9cdbd86661dfae562fa123a8f53c /source3/utils/make_printerdef.c
parent87fbb7092b8f8b2f0db0f361c3d625e19de57cd9 (diff)
downloadsamba-527e824293ee934ca5da0ef5424efe5ab7757248.tar.gz
samba-527e824293ee934ca5da0ef5424efe5ab7757248.tar.bz2
samba-527e824293ee934ca5da0ef5424efe5ab7757248.zip
strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
(This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
Diffstat (limited to 'source3/utils/make_printerdef.c')
-rw-r--r--source3/utils/make_printerdef.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/utils/make_printerdef.c b/source3/utils/make_printerdef.c
index f403ee79bb..5107b124a7 100644
--- a/source3/utils/make_printerdef.c
+++ b/source3/utils/make_printerdef.c
@@ -47,8 +47,8 @@ static char *myfgets(char *s, int n, FILE *stream)
int i;
fgets(s,n,stream);
- while ((LString1 = strchr(s,'%')) != NULL) {
- if (!(LString2 = strchr(LString1+1,'%'))) break;
+ while ((LString1 = strchr_m(s,'%')) != NULL) {
+ if (!(LString2 = strchr_m(LString1+1,'%'))) break;
*LString2 = '\0';
pstrcpy(String,LString1+1);
i = 0;
@@ -56,7 +56,7 @@ static char *myfgets(char *s, int n, FILE *stream)
if (strncmp(sbuffer[i],String,strlen(String))==0)
{
pstrcpy(String,sbuffer[i]);
- if ((temp = strchr(String,'=')) != NULL) ++temp;
+ if ((temp = strchr_m(String,'=')) != NULL) ++temp;
pstrcpy(String,temp);
break;
}
@@ -360,7 +360,7 @@ static void scan_copyfiles(FILE *fichier, char *chaine)
* This may still be wrong but at least I get the same list
* of files as seen on a printer test page.
*/
- part = strchr(buffer[i],'=');
+ part = strchr_m(buffer[i],'=');
if (part) {
/*
* Case (1) eg. pscript.hlp = pscript.hl_ - chop after the first name.
@@ -379,13 +379,13 @@ static void scan_copyfiles(FILE *fichier, char *chaine)
break;
}
} else {
- part = strchr(buffer[i],',');
+ part = strchr_m(buffer[i],',');
if (part) {
/*
* Cases (2-4)
*/
- if ((mpart = strrchr(part+1,','))!=NULL) {
+ if ((mpart = strrchr_m(part+1,','))!=NULL) {
/*
* Second ',' - case 3 or 4.
* Check if the last part is just a number,
@@ -507,7 +507,7 @@ static void scan_short_desc(FILE *fichier, char *short_desc)
temp = strtok(languagemonitor,",");
if (*temp == '"') ++temp;
pstrcpy(languagemonitor,temp);
- if ((temp = strchr(languagemonitor,'"'))!=NULL) *temp = '\0';
+ if ((temp = strchr_m(languagemonitor,'"'))!=NULL) *temp = '\0';
}
if (i) fprintf(stderr,"End of section found\n");