Fix compile warnings.

This commit is contained in:
Arnold D. Robbins 2019-10-07 15:50:53 +03:00
parent 7cae39dfa5
commit 5ff28208db
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2019-10-07 Arnold D. Robbins <arnold@skeeve.com>
* b.c (fnematch): Change type of pbuf from unsigned char to char.
* proto.h (fnematch): Ditto.
2019-10-06 Arnold D. Robbins <arnold@skeeve.com>
* lib.c (readrec): Allow RS a regular expression. Imported

4
b.c
View File

@ -632,9 +632,9 @@ int nematch(fa *f, const char *p0) /* non-empty match, for sub */
* 1 Match found.
*/
int fnematch(fa *pfa, FILE *f, uschar **pbuf, int *pbufsize, int quantum)
int fnematch(fa *pfa, FILE *f, char **pbuf, int *pbufsize, int quantum)
{
uschar *buf = *pbuf;
char *buf = *pbuf;
int bufsize = *pbufsize;
int c, i, j, k, ns, s;

View File

@ -54,7 +54,7 @@ extern int member(int, const char *);
extern int match(fa *, const char *);
extern int pmatch(fa *, const char *);
extern int nematch(fa *, const char *);
extern int fnematch(fa *, FILE *, uschar **, int *, int);
extern int fnematch(fa *, FILE *, char **, int *, int);
extern Node *reparse(const char *);
extern Node *regexp(void);
extern Node *primary(void);