aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-04-21 18:07:15 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-04-21 18:07:15 +0200
commit256bbc5f9dcfffe9cd26b09acef04f94850cde3c (patch)
treeeacdca51b42b350cd32216371689f32809c691f3
parent2f057e9cadc5584819945a935313cfe5d86333fb (diff)
downloadembedlog-256bbc5f9dcfffe9cd26b09acef04f94850cde3c.tar.gz
embedlog-256bbc5f9dcfffe9cd26b09acef04f94850cde3c.tar.bz2
embedlog-256bbc5f9dcfffe9cd26b09acef04f94850cde3c.zip
fix compilation warnings
-rw-r--r--tst/test-el-file.c7
-rw-r--r--tst/test-el-options.c3
2 files changed, 1 insertions, 9 deletions
diff --git a/tst/test-el-file.c b/tst/test-el-file.c
index da49061..468456a 100644
--- a/tst/test-el-file.c
+++ b/tst/test-el-file.c
@@ -69,11 +69,6 @@ int file_synced;
#define s5 "qwert"
#define s3 "asd"
#define s1 "a"
-static unsigned char d1[] = { 0x01 };
-static unsigned char d2[] = { 0x53, 0x10 };
-static unsigned char d3[] = { 0x00, 0x10, 0x12 };
-static unsigned char d5[] = { 'f', 'o', 'o', 0x00, 'b' };
-static unsigned char d8[] = { 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00 };
mt_defs_ext();
@@ -299,7 +294,7 @@ static void file_and_directory_reapear(void)
rmdir(WORKDIR);
mt_ferr(el_puts(s9), EBADF);
mkdir(WORKDIR, 0755);
- system("echo test > \""WORKDIR"/log\"");
+ mt_fok(system("echo test > \""WORKDIR"/log\""));
mt_fok(el_puts(s9));
mt_fok(file_check(WORKDIR"/log", "test\n"s9));
}
diff --git a/tst/test-el-options.c b/tst/test-el-options.c
index c8938a3..153e699 100644
--- a/tst/test-el-options.c
+++ b/tst/test-el-options.c
@@ -194,12 +194,9 @@ static void options_file_sync_level_set(void)
static void options_output(void)
{
- int current_outputs;
int i;
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
- current_outputs = 0;
-
for (i = 0; i != EL_OUT_ALL; ++i)
{
int ok = 1;