X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Fliblunicode%2Fucdata%2Fucgendat.c;h=3be66a670eb34df44ed6984e32a4ab437131cac4;hb=a7c595088c1561c4f08932a97f9a716ae9dabd9c;hp=91f5bc9186bca87ba3f6b78caac59d82736173d4;hpb=dc0eacd40b625258355eea866d62188e5aa7ce3b;p=openldap
diff --git a/libraries/liblunicode/ucdata/ucgendat.c b/libraries/liblunicode/ucdata/ucgendat.c
index 91f5bc9186..3be66a670e 100644
--- a/libraries/liblunicode/ucdata/ucgendat.c
+++ b/libraries/liblunicode/ucdata/ucgendat.c
@@ -1,7 +1,7 @@
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2005 The OpenLDAP Foundation.
+ * Copyright 1998-2012 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -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