summaryrefslogtreecommitdiffstats
path: root/src/file_riff.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-04-14 11:14:57 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-04-14 11:14:57 +0200
commit4e0c192abec6352dfa73d6d281ac3b788453d830 (patch)
treeb549a9b0c8be852443a84c55f27dc06e808891a9 /src/file_riff.c
parent23f85f95311eebfa0f6c9c7c1cf75fd67084d48e (diff)
declare file_check_size_rifx() as static
Diffstat (limited to 'src/file_riff.c')
-rw-r--r--src/file_riff.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/file_riff.c b/src/file_riff.c
index e4373e2..c4a0ed7 100644
--- a/src/file_riff.c
+++ b/src/file_riff.c
@@ -36,8 +36,6 @@
int data_check_avi_stream(const unsigned char *buffer, const unsigned int buffer_size, file_recovery_t *file_recovery);
static void register_header_check_riff(file_stat_t *file_stat);
-static int header_check_riff(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new);
-static void file_check_avi(file_recovery_t *file_recovery);
const file_hint_t file_hint_riff= {
.extension="riff",
@@ -46,7 +44,7 @@ const file_hint_t file_hint_riff= {
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
- .register_header_check=&register_header_check_riff
+ .register_header_check=&register_header_check_riff
};
static const unsigned char riff_header[4]= {'R','I','F','F'};
@@ -206,7 +204,7 @@ int data_check_avi_stream(const unsigned char *buffer, const unsigned int buffer
return 1;
}
-void file_check_size_rifx(file_recovery_t *file_recovery)
+static void file_check_size_rifx(file_recovery_t *file_recovery)
{
if(file_recovery->file_size<file_recovery->calculated_file_size)
file_recovery->file_size=0;