Skip to content

Commit ddf0c8f

Browse files
committed
fixed some warnings for errtbl.c on Cygwin systems
1 parent d52cbce commit ddf0c8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

errtbl.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ is_e_digits(CONST char *errsym)
855855
* check for only digits remaining
856856
*/
857857
for (p = errsym+2; *p != '\0'; ++p) {
858-
if (!isascii(*p) || !isdigit(*p)) {
858+
if (!isascii((int)*p) || !isdigit((int)*p)) {
859859
return false;
860860
}
861861
}
@@ -1090,7 +1090,7 @@ is_e_1string(CONST char *errsym)
10901090
* must match regular expression: ^E_[A-Z][A-Z0-9_]+$
10911091
*/
10921092
for (p = errsym+3; *p != '\0'; ++p) {
1093-
if (!isascii(*p) || !(isupper(*p) || isdigit(*p) || *p == '_')) {
1093+
if (!isascii((int)*p) || !(isupper((int)*p) || isdigit((int)*p) || *p == '_')) {
10941094
return false;
10951095
}
10961096
}
@@ -2183,8 +2183,8 @@ print_errsym(void)
21832183
int
21842184
main(int argc, char *argv[])
21852185
{
2186-
extern char *optarg; /* argv index of the next arg */
2187-
extern int optind; /* argv index of the next arg */
2186+
EXTERN char *optarg; /* argv index of the next arg */
2187+
EXTERN int optind; /* argv index of the next arg */
21882188
int e_flag = 0; /* 1 ==> -e flag was used */
21892189
int d_flag = 0; /* 1 ==> -s flag was used */
21902190
int i;

0 commit comments

Comments
 (0)