X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmime.c;h=5a515c3a1b3a8bf9c9470e037f215b14da4bd6da;hb=ecc1ee5b177fdc11ed531dfe13b5c3aae52b2843;hp=a081f53f8ebb228b8d75cee2c87255be1d3253d1;hpb=8d691989077a0addcbd840d769dce6700f3d9622;p=yaz-moved-to-github.git diff --git a/src/mime.c b/src/mime.c index a081f53..5a515c3 100644 --- a/src/mime.c +++ b/src/mime.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2008 Index Data * See the file LICENSE for details. - * - * $Id: mime.c,v 1.3 2007-01-03 08:42:15 adam Exp $ */ /** \file mime.c @@ -32,7 +30,7 @@ struct yaz_mime_info { yaz_mime_types yaz_mime_types_create() { - yaz_mime_types p = xmalloc(sizeof(*p)); + yaz_mime_types p = (yaz_mime_types) xmalloc(sizeof(*p)); p->table = 0; return p; } @@ -40,7 +38,7 @@ yaz_mime_types yaz_mime_types_create() void yaz_mime_types_add(yaz_mime_types t, const char *suffix, const char *mime_type) { - struct yaz_mime_entry *e = xmalloc(sizeof(*e)); + struct yaz_mime_entry *e = (struct yaz_mime_entry *) xmalloc(sizeof(*e)); e->mime_type = xstrdup(mime_type); e->suffix = xstrdup(suffix); e->next = t->table;