Refactor code to improve the SAM score 06/316106/1
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 13 Aug 2024 14:33:27 +0000 (16:33 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 13 Aug 2024 14:34:37 +0000 (16:34 +0200)
Change-Id: I2ef1f9f887c32b352104ec99539ea8e3ae259161

bsdiff/ss_bsdiff.c

index 7a6245e45c57ea1e0c41c6b0a6d79e23583a5597..f24dd8c7f13e1357b45ee3fbf30816aa12e27d83 100644 (file)
@@ -65,8 +65,8 @@
 3.) MULTI_THREADING can be used only with (CONST_MEMORY_USAGE or MAX_MATCH_SIZE).
 */
 #ifdef TIME_LIMIT_CHECK
-long long outer_count = 0;
-char ts1[256];
+static long long outer_count = 0;
+static char ts1[256];
 void get_time_stamp(void)
 {
        struct timeval tv;
@@ -154,7 +154,7 @@ struct bsdiff_info {
        const char *block_count_file;
 };
 
-struct data_thread data;
+static struct data_thread data;
 
 int Function(int, uint64_t *block_count);