summaryrefslogtreecommitdiff
path: root/amiga/filetype.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-11 00:07:11 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-11 00:07:11 +0000
commitae012398b0f0a7320ed1d80bf6c370971033b2b9 (patch)
treeb82c1c21aea28aa02890543f5c09bc9e03fe9b26 /amiga/filetype.c
parent81d024e3d856ccb2e5d8270d8f7168417ece81ac (diff)
downloadnetsurf-ae012398b0f0a7320ed1d80bf6c370971033b2b9.tar.gz
netsurf-ae012398b0f0a7320ed1d80bf6c370971033b2b9.tar.bz2
more easy os3 fixes
Diffstat (limited to 'amiga/filetype.c')
-rw-r--r--amiga/filetype.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/amiga/filetype.c b/amiga/filetype.c
index 67b60ab07..b37ebe58d 100644
--- a/amiga/filetype.c
+++ b/amiga/filetype.c
@@ -16,9 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "amiga/os3support.h"
+
#include <stdlib.h>
#include <string.h>
#include "amiga/filetype.h"
+#include "amiga/misc.h"
#include "amiga/object.h"
#include "content/fetch.h"
#include "content/content.h"
@@ -201,7 +204,7 @@ nserror ami_mime_init(const char *mimefile)
if(ReadArgs(template, rarray, rargs))
{
node = AddObject(ami_mime_list, AMINS_MIME);
- mimeentry = AllocVecTags(sizeof(struct ami_mime_entry), AVT_ClearWithValue, 0, TAG_DONE);
+ mimeentry = ami_misc_allocvec_clear(sizeof(struct ami_mime_entry), 0);
node->objstruct = mimeentry;
if(rarray[AMI_MIME_MIMETYPE])
@@ -351,7 +354,7 @@ static APTR ami_mime_guess_add_datatype(struct DataType *dt, lwc_string **lwc_mi
char *p;
node = AddObject(ami_mime_list, AMINS_MIME);
- mimeentry = AllocVecTags(sizeof(struct ami_mime_entry), AVT_ClearWithValue, 0, TAG_DONE);
+ mimeentry = ami_misc_allocvec_clear(sizeof(struct ami_mime_entry), 0);
node->objstruct = mimeentry;
lerror = lwc_intern_string(dth->dth_Name, strlen(dth->dth_Name), &mimeentry->datatype);