diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-10-12 13:11:13 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-10-12 13:11:13 +0100 |
commit | ade86e496ea4bc27b6edab125bad9f5dc4bb3852 (patch) | |
tree | 81aae5427d06ae06be2968df5d025780206bf682 /amiga/filetype.c | |
parent | 6ea52d0d9f423a13acc7c7fe015038a15a9636ff (diff) | |
download | netsurf-ade86e496ea4bc27b6edab125bad9f5dc4bb3852.tar.gz netsurf-ade86e496ea4bc27b6edab125bad9f5dc4bb3852.tar.bz2 |
Replace AllocVec with AllocVecTags. Remove some instances of MEMF_CLEAR where it is not necessary.
Diffstat (limited to 'amiga/filetype.c')
-rw-r--r-- | amiga/filetype.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/amiga/filetype.c b/amiga/filetype.c index 7808ff7d2..39e874ab0 100644 --- a/amiga/filetype.c +++ b/amiga/filetype.c @@ -218,7 +218,7 @@ nserror ami_mime_init(const char *mimefile) if(ReadArgs(template, rarray, rargs)) { node = AddObject(ami_mime_list, AMINS_MIME); - mimeentry = AllocVec(sizeof(struct ami_mime_entry), MEMF_PRIVATE | MEMF_CLEAR); + mimeentry = AllocVecTags(sizeof(struct ami_mime_entry), AVT_ClearWithValue, 0, TAG_DONE); node->objstruct = mimeentry; if(rarray[AMI_MIME_MIMETYPE]) @@ -366,7 +366,7 @@ APTR ami_mime_guess_add_datatype(struct DataType *dt, lwc_string **lwc_mimetype) char *p; node = AddObject(ami_mime_list, AMINS_MIME); - mimeentry = AllocVec(sizeof(struct ami_mime_entry), MEMF_PRIVATE | MEMF_CLEAR); + mimeentry = AllocVecTags(sizeof(struct ami_mime_entry), AVT_ClearWithValue, 0, TAG_DONE); node->objstruct = mimeentry; lerror = lwc_intern_string(dth->dth_Name, strlen(dth->dth_Name), &mimeentry->datatype); |