aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2020-05-29 18:48:03 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2020-05-29 18:48:03 +0200
commit106441d25cf5311c70a963e6e06e86bd4a3d7b93 (patch)
tree44ff7485e4a3ba32a0d90911eeee7072df500d0e
parent8b09eab8df86a8dfd8af3437c8173c590b577849 (diff)
downloadembedlog-106441d25cf5311c70a963e6e06e86bd4a3d7b93.tar.gz
embedlog-106441d25cf5311c70a963e6e06e86bd4a3d7b93.tar.bz2
embedlog-106441d25cf5311c70a963e6e06e86bd4a3d7b93.zip
tst: move extern file_synced from src to tst to preven undef reference
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r--src/el-file.c2
-rw-r--r--tst/test-el-file.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/el-file.c b/src/el-file.c
index 21a8014..0f211c2 100644
--- a/src/el-file.c
+++ b/src/el-file.c
@@ -71,7 +71,7 @@
* or not, so we introduce this helper variable to know if we
* executed syncing code or not
*/
-extern int file_synced;
+int file_synced;
#endif
diff --git a/tst/test-el-file.c b/tst/test-el-file.c
index 3c5843b..7ef238b 100644
--- a/tst/test-el-file.c
+++ b/tst/test-el-file.c
@@ -41,7 +41,7 @@
* path of the code
*/
-int file_synced;
+extern int file_synced;
/* ==========================================================================