summaryrefslogtreecommitdiff
path: root/xs_mime.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-08 07:00:05 +0200
committerdefault <nobody@localhost>2022-10-08 07:00:05 +0200
commit0f4779e2a095b72b7ec7fc0f2abe2cc57f152b76 (patch)
treed9b945a8c84ba1441ad1563a78259e6ae95e4c1a /xs_mime.h
parent29a0b21929495b04e81085f1502a4498c728fb84 (diff)
Backport from xs.
Diffstat (limited to 'xs_mime.h')
-rw-r--r--xs_mime.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xs_mime.h b/xs_mime.h
index 699ab39..072a98a 100644
--- a/xs_mime.h
+++ b/xs_mime.h
@@ -4,7 +4,7 @@
#define _XS_MIME
-char *xs_mime_by_ext(char *file);
+char *xs_mime_by_ext(const char *file);
#ifdef XS_IMPLEMENTATION
@@ -27,7 +27,7 @@ struct _mime_info {
};
-char *xs_mime_by_ext(char *file)
+char *xs_mime_by_ext(const char *file)
/* returns the MIME type by file extension */
{
struct _mime_info *mi = mime_info;