diff options
Diffstat (limited to 'regex/main.c')
-rw-r--r-- | regex/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regex/main.c b/regex/main.c index f43a112a661..29abca6d9a2 100644 --- a/regex/main.c +++ b/regex/main.c @@ -78,7 +78,7 @@ char *argv[]; if (err) { len = regerror(err, &re, erbuf, sizeof(erbuf)); fprintf(stderr, "error %s, %d/%d `%s'\n", - eprint(err), len, sizeof(erbuf), erbuf); + eprint(err), len, (int) sizeof(erbuf), erbuf); exit(status); } regprint(&re, stdout); @@ -96,7 +96,7 @@ char *argv[]; if (err) { len = regerror(err, &re, erbuf, sizeof(erbuf)); fprintf(stderr, "error %s, %d/%d `%s'\n", - eprint(err), len, sizeof(erbuf), erbuf); + eprint(err), (int) len, (int) sizeof(erbuf), erbuf); exit(status); } if (!(copts®_NOSUB)) { @@ -232,7 +232,7 @@ int opts; /* may not match f1 */ len = regerror(err, &re, erbuf, sizeof(erbuf)); fprintf(stderr, "%d: %s error %s, %d/%d `%s'\n", line, type, eprint(err), len, - sizeof(erbuf), erbuf); + (int) sizeof(erbuf), erbuf); status = 1; } else if (err == 0 && opt('C', f1)) { /* unexpected success */ @@ -263,7 +263,7 @@ int opts; /* may not match f1 */ len = regerror(err, &re, erbuf, sizeof(erbuf)); fprintf(stderr, "%d: %s exec error %s, %d/%d `%s'\n", line, type, eprint(err), len, - sizeof(erbuf), erbuf); + (int) sizeof(erbuf), erbuf); status = 1; } else if (err != 0) { /* nothing more to check */ |