diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-20 14:23:09 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-20 16:33:03 +0100 |
commit | d40e6e14769aed5e0d024752037d5b42a71f6063 (patch) | |
tree | 56106d6ce1bde5fbdc051276f034abf01dcc715f /include/filetype.h | |
parent | 0e18d5ae7ff82a455c0d46291d67a894b86b82a1 (diff) | |
download | barebox-d40e6e14769aed5e0d024752037d5b42a71f6063.tar.gz barebox-d40e6e14769aed5e0d024752037d5b42a71f6063.tar.xz |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/filetype.h b/include/filetype.h index 91139dbfe3..502b920927 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); |