diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-19 20:44:17 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-19 20:44:17 +0000 |
commit | a8bd2af7103bca7145f8c566ec46f27e2be8d182 (patch) | |
tree | 2c14d8d3402e7799b161852676dc8698310ed59f /frontends/amiga/filetype.c | |
parent | 81a7e0cbe9851c2388e53950a6db3e75b1156ead (diff) | |
download | netsurf-a8bd2af7103bca7145f8c566ec46f27e2be8d182.tar.gz netsurf-a8bd2af7103bca7145f8c566ec46f27e2be8d182.tar.bz2 |
More allocvec/malloc replacements
Diffstat (limited to 'frontends/amiga/filetype.c')
-rw-r--r-- | frontends/amiga/filetype.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/frontends/amiga/filetype.c b/frontends/amiga/filetype.c index 8c658ee81..a0449d848 100644 --- a/frontends/amiga/filetype.c +++ b/frontends/amiga/filetype.c @@ -31,7 +31,6 @@ #include "utils/utils.h" #include "amiga/filetype.h" -#include "amiga/memory.h" #include "amiga/object.h" /** @@ -217,7 +216,7 @@ nserror ami_mime_init(const char *mimefile) { if ((node = AddObject(ami_mime_list, AMINS_MIME))) { ObjectCallback(node, ami_mime_entry_free); - mimeentry = ami_misc_allocvec_clear(sizeof(struct ami_mime_entry), 0); + mimeentry = calloc(1, sizeof(struct ami_mime_entry)); node->objstruct = mimeentry; if(rarray[AMI_MIME_MIMETYPE]) @@ -361,7 +360,7 @@ static APTR ami_mime_guess_add_datatype(struct DataType *dt, lwc_string **lwc_mi node = AddObject(ami_mime_list, AMINS_MIME); if(node == NULL) return NULL; - mimeentry = ami_misc_allocvec_clear(sizeof(struct ami_mime_entry), 0); + mimeentry = calloc(1, sizeof(struct ami_mime_entry)); if(mimeentry == NULL) return NULL; node->objstruct = mimeentry; |