aboutsummaryrefslogtreecommitdiff
path: root/iconvdata/johab.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconvdata/johab.c')
-rw-r--r--iconvdata/johab.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/iconvdata/johab.c b/iconvdata/johab.c
index 3acd5fc..bde56ce 100644
--- a/iconvdata/johab.c
+++ b/iconvdata/johab.c
@@ -239,7 +239,7 @@ johab_from_ucs4 (wchar_t ch, unsigned char *cp)
int
-gconv_init (struct gconv_step *step, struct gconv_step_data *data)
+gconv_init (struct gconv_step *step)
{
/* Determine which direction. */
struct johab_data *new_data;
@@ -260,7 +260,7 @@ gconv_init (struct gconv_step *step, struct gconv_step_data *data)
!= NULL))
{
new_data->dir = dir;
- data->data = new_data;
+ step->data = new_data;
result = GCONV_OK;
}
@@ -269,7 +269,7 @@ gconv_init (struct gconv_step *step, struct gconv_step_data *data)
void
-gconv_end (struct gconv_step_data *data)
+gconv_end (struct gconv_step *data)
{
free (data->data);
}
@@ -308,7 +308,7 @@ gconv (struct gconv_step *step, struct gconv_step_data *data,
}
else
{
- enum direction dir = ((struct johab_data *) data->data)->dir;
+ enum direction dir = ((struct johab_data *) step->data)->dir;
do_write = 0;