summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-03-15 05:49:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:22 -0500
commit69408532e75bc621439239fb808ca79e2910dcbc (patch)
tree95f42b3fffe1198ba8281c446c4a591630d171c4
parent4ce5f82979ef128690a400fefd7f78110a2c4f98 (diff)
downloadsamba-69408532e75bc621439239fb808ca79e2910dcbc.tar.gz
samba-69408532e75bc621439239fb808ca79e2910dcbc.tar.bz2
samba-69408532e75bc621439239fb808ca79e2910dcbc.zip
r14429: charset_t cannot be used to loop over charset_t, as otherwise it can
go out of the range of the enum (This used to be commit caead24b6dd2f2e87e113587cacd57794487a83a)
-rw-r--r--source4/lib/charset/charcnv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/charset/charcnv.c b/source4/lib/charset/charcnv.c
index a10a336fd2..3ee8adf772 100644
--- a/source4/lib/charset/charcnv.c
+++ b/source4/lib/charset/charcnv.c
@@ -63,7 +63,7 @@ static smb_iconv_t conv_handles[NUM_CHARSETS][NUM_CHARSETS];
**/
_PUBLIC_ void init_iconv(void)
{
- charset_t c1, c2;
+ unsigned c1, c2;
for (c1=0;c1<NUM_CHARSETS;c1++) {
for (c2=0;c2<NUM_CHARSETS;c2++) {
if (conv_handles[c1][c2] != NULL) {