From: Hallvard Furuseth Date: Tue, 13 Sep 2005 03:32:19 +0000 (+0000) Subject: Format fixes. #include . Cast isspace() arg to unsigned char. X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~436 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f9a6f7c41abd94e801d59aca84bba69c8d266ac1;p=openldap Format fixes. #include . Cast isspace() arg to unsigned char. --- diff --git a/libraries/liblunicode/ucdata/ucgendat.c b/libraries/liblunicode/ucdata/ucgendat.c index 91f5bc9186..297d146ad6 100644 --- a/libraries/liblunicode/ucdata/ucgendat.c +++ b/libraries/liblunicode/ucdata/ucgendat.c @@ -38,6 +38,7 @@ #include "ldap_config.h" #include +#include #include #include #include @@ -1223,7 +1224,7 @@ read_compexdata(FILE *in) */ for (s = line, i = code = 0; *s != '#' && i < 6; i++, s++) { - if (isspace(*s)) break; + if (isspace((unsigned char)*s)) break; code <<= 4; if (*s >= '0' && *s <= '9') code += *s - '0'; @@ -1268,8 +1269,9 @@ write_case(FILE *out, _case_t *tab, int num, int first) for (i=0; i 0) @@ -1491,8 +1495,8 @@ write_cdata(char *opath) create_comps(); #if HARDCODE_DATA - fprintf(out, PREF "ac_uint4 _uccomp_size = %d;\n\n", - comps_used * 4); + fprintf(out, PREF "ac_uint4 _uccomp_size = %ld;\n\n", + comps_used * 4L); fprintf(out, PREF "ac_uint4 _uccomp_data[] = {"); @@ -1502,8 +1506,9 @@ write_cdata(char *opath) if (comps_used > 0) { for (i=0; i