diff options
Diffstat (limited to 'src/charset/codecs/codec_8859.c')
-rw-r--r-- | src/charset/codecs/codec_8859.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/charset/codecs/codec_8859.c b/src/charset/codecs/codec_8859.c index d323ca0..0ab4c32 100644 --- a/src/charset/codecs/codec_8859.c +++ b/src/charset/codecs/codec_8859.c @@ -64,7 +64,6 @@ typedef struct charset_8859_codec { static bool charset_8859_codec_handles_charset(const char *charset); static parserutils_error charset_8859_codec_create(const char *charset, - parserutils_alloc alloc, void *pw, parserutils_charset_codec **codec); static parserutils_error charset_8859_codec_destroy( parserutils_charset_codec *codec); @@ -123,15 +122,12 @@ bool charset_8859_codec_handles_charset(const char *charset) * Create an ISO-8859-n codec * * \param charset The charset to read from / write to - * \param alloc Memory (de)allocation function - * \param pw Pointer to client-specific private data (may be NULL) * \param codec Pointer to location to receive codec * \return PARSERUTILS_OK on success, * PARSERUTILS_BADPARM on bad parameters, * PARSERUTILS_NOMEM on memory exhausion */ parserutils_error charset_8859_codec_create(const char *charset, - parserutils_alloc alloc, void *pw, parserutils_charset_codec **codec) { uint32_t i; @@ -149,7 +145,7 @@ parserutils_error charset_8859_codec_create(const char *charset, assert(table != NULL); - c = alloc(NULL, sizeof(charset_8859_codec), pw); + c = malloc(sizeof(charset_8859_codec)); if (c == NULL) return PARSERUTILS_NOMEM; |