summaryrefslogtreecommitdiffstats
path: root/include/filetype.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-01-20 14:23:09 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-20 16:33:03 +0100
commitd40e6e14769aed5e0d024752037d5b42a71f6063 (patch)
tree56106d6ce1bde5fbdc051276f034abf01dcc715f /include/filetype.h
parent0e18d5ae7ff82a455c0d46291d67a894b86b82a1 (diff)
downloadbarebox-d40e6e14769aed5e0d024752037d5b42a71f6063.tar.gz
filetype: Make buf in file_detect_type const
This function has no business changing the buffer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/filetype.h')
-rw-r--r--include/filetype.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/filetype.h b/include/filetype.h
index 91139db..502b920 100644
--- a/include/filetype.h
+++ b/include/filetype.h
@@ -30,7 +30,7 @@ enum filetype {
const char *file_type_to_string(enum filetype f);
const char *file_type_to_short_string(enum filetype f);
-enum filetype file_detect_type(void *_buf, size_t bufsize);
+enum filetype file_detect_type(const void *_buf, size_t bufsize);
enum filetype file_name_detect_type(const char *filename);
enum filetype is_fat_or_mbr(const unsigned char *sector, unsigned long *bootsec);