summaryrefslogtreecommitdiffstats
path: root/src/file_tar.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2022-04-13 09:20:45 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2022-04-13 09:20:45 +0200
commit305d71ea0a542f40d5c01573643a457747cc60a0 (patch)
tree77470fd224293c22623e36bf1684715fef5c625c /src/file_tar.c
parent952415ee990f17fed58ba22ca0d3f86fad38ff2b (diff)
Use "DISABLED_FOR_FRAMAC" to disable code to facilitate verificationHEADmaster
using frama-c
Diffstat (limited to 'src/file_tar.c')
-rw-r--r--src/file_tar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_tar.c b/src/file_tar.c
index 35001ca..3098e04 100644
--- a/src/file_tar.c
+++ b/src/file_tar.c
@@ -20,7 +20,7 @@
*/
-#if !defined(SINGLE_FORMAT) || defined(SINGLE_FORMAT_tar) || defined(MAIN_photorec)
+#if !defined(SINGLE_FORMAT) || defined(SINGLE_FORMAT_tar)
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -134,7 +134,7 @@ static int header_check_tar(const unsigned char *buffer, const unsigned int buff
static void register_header_check_tar(file_stat_t *file_stat)
{
register_header_check(0x101, tar_header_gnu, sizeof(tar_header_gnu), &header_check_tar, file_stat);
-#ifndef __FRAMAC__
+#ifndef DISABLED_FOR_FRAMAC
register_header_check(0x101, tar_header_posix, sizeof(tar_header_posix), &header_check_tar, file_stat);
#endif
}