summaryrefslogtreecommitdiff
path: root/src/charset/codecs/codec_ext8.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-12-14 23:14:09 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-12-14 23:14:09 +0000
commit8e48b931091cbc99abeffacc7af80f363495ec23 (patch)
tree8aec6c47ec54e425884f646b08a9e28b216b3ebe /src/charset/codecs/codec_ext8.c
parenta4e3ccd6abb97d05121635112bdca44fc0e440b0 (diff)
downloadlibparserutils-8e48b931091cbc99abeffacc7af80f363495ec23.tar.gz
libparserutils-8e48b931091cbc99abeffacc7af80f363495ec23.tar.bz2
Remove client allocation function.
Diffstat (limited to 'src/charset/codecs/codec_ext8.c')
-rw-r--r--src/charset/codecs/codec_ext8.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/charset/codecs/codec_ext8.c b/src/charset/codecs/codec_ext8.c
index 5e7cb8a..eb9c898 100644
--- a/src/charset/codecs/codec_ext8.c
+++ b/src/charset/codecs/codec_ext8.c
@@ -58,7 +58,6 @@ typedef struct charset_ext8_codec {
static bool charset_ext8_codec_handles_charset(const char *charset);
static parserutils_error charset_ext8_codec_create(const char *charset,
- parserutils_alloc alloc, void *pw,
parserutils_charset_codec **codec);
static parserutils_error charset_ext8_codec_destroy(
parserutils_charset_codec *codec);
@@ -117,15 +116,12 @@ bool charset_ext8_codec_handles_charset(const char *charset)
* Create an extended 8bit 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_ext8_codec_create(const char *charset,
- parserutils_alloc alloc, void *pw,
parserutils_charset_codec **codec)
{
uint32_t i;
@@ -143,7 +139,7 @@ parserutils_error charset_ext8_codec_create(const char *charset,
assert(table != NULL);
- c = alloc(NULL, sizeof(charset_ext8_codec), pw);
+ c = malloc(sizeof(charset_ext8_codec));
if (c == NULL)
return PARSERUTILS_NOMEM;