summaryrefslogtreecommitdiffstats
path: root/src/file_m2ts.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_m2ts.c
parent952415ee990f17fed58ba22ca0d3f86fad38ff2b (diff)
Use "DISABLED_FOR_FRAMAC" to disable code to facilitate verificationHEADmaster
using frama-c
Diffstat (limited to 'src/file_m2ts.c')
-rw-r--r--src/file_m2ts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_m2ts.c b/src/file_m2ts.c
index 99d1b23..dd31730 100644
--- a/src/file_m2ts.c
+++ b/src/file_m2ts.c
@@ -105,7 +105,7 @@ static void file_rename_ts_188(file_recovery_t *file_recovery)
#endif
pid=((buffer[1]<<8)|buffer[2])&0x1fff;
sprintf(buffer_pid, "pid_%u", pid);
-#if defined(__FRAMAC__)
+#if defined(DISABLED_FOR_FRAMAC)
buffer_pid[sizeof(buffer_pid)-1]='\0';
#endif
file_rename(file_recovery, (const unsigned char*)buffer_pid, strlen(buffer_pid), 0, NULL, 1);
@@ -136,7 +136,7 @@ static void file_rename_ts_192(file_recovery_t *file_recovery)
#endif
pid=((buffer[5]<<8)|buffer[6])&0x1fff;
sprintf(buffer_pid, "pid_%u", pid);
-#if defined(__FRAMAC__)
+#if defined(DISABLED_FOR_FRAMAC)
buffer_pid[sizeof(buffer_pid)-1]='\0';
#endif
file_rename(file_recovery, (const unsigned char*)buffer_pid, strlen(buffer_pid), 0, NULL, 1);