projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 4.2.7
[yaz-moved-to-github.git]
/
src
/
mime.c
diff --git
a/src/mime.c
b/src/mime.c
index
2a82c7d
..
f2421d1
100644
(file)
--- a/
src/mime.c
+++ b/
src/mime.c
@@
-1,8
+1,6
@@
-/*
- * Copyright (C) 1995-2006, Index Data ApS
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2011 Index Data
* See the file LICENSE for details.
* See the file LICENSE for details.
- *
- * $Id: mime.c,v 1.2 2006-04-20 20:50:51 adam Exp $
*/
/** \file mime.c
*/
/** \file mime.c
@@
-15,7
+13,6
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
-#include <ctype.h>
#include <yaz/xmalloc.h>
#include "mime.h"
#include <yaz/xmalloc.h>
#include "mime.h"
@@
-32,7
+29,7
@@
struct yaz_mime_info {
yaz_mime_types yaz_mime_types_create()
{
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;
}
p->table = 0;
return p;
}
@@
-40,7
+37,7
@@
yaz_mime_types yaz_mime_types_create()
void yaz_mime_types_add(yaz_mime_types t, const char *suffix,
const char *mime_type)
{
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;
e->mime_type = xstrdup(mime_type);
e->suffix = xstrdup(suffix);
e->next = t->table;
@@
-83,6
+80,7
@@
void yaz_mime_types_destroy(yaz_mime_types t)
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab