aboutsummaryrefslogtreecommitdiffstats
path: root/tests/odirect_write.c
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2023-11-27 23:35:41 +0200
committerGitHub <noreply@github.com>2023-11-27 23:35:41 +0200
commit2b5f2e24527f04f4255161965ae4099192714b73 (patch)
treeb8edd8485dfcd64c68b12da4221a356acd54a0fa /tests/odirect_write.c
parent47f4cac457c3583548c0d7dba402568a1e0871b8 (diff)
parent95936b647c0283cc6ebd2b685cc5b72889cda8bd (diff)
downloadbindfs-2b5f2e24527f04f4255161965ae4099192714b73.tar.gz
Merge pull request #150 from hartwork/macos-ci
Cover macOS in CI + make CI use the right compiler + fix more compile warnings
Diffstat (limited to 'tests/odirect_write.c')
-rw-r--r--tests/odirect_write.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/odirect_write.c b/tests/odirect_write.c
index bc9040f..11dde43 100644
--- a/tests/odirect_write.c
+++ b/tests/odirect_write.c
@@ -32,7 +32,6 @@ int main(int argc, char** argv) {
return 1;
}
- size_t total_size = 0;
while (1) {
if (feof(stdin)) {
break;
@@ -48,8 +47,6 @@ int main(int argc, char** argv) {
continue;
}
- total_size += amt_read;
-
ssize_t res = write(fd, buf, buf_size);
if (res == -1) {
perror("failed to write");
@@ -70,7 +67,7 @@ int main(int argc, char** argv) {
#include <stdio.h>
-int main() {
+int main(void) {
fprintf(stderr, "Not supported on this platform.\n");
return 1;
}