1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

remove obsolete flag parameter from afopen()

This commit is contained in:
Steffen Vogel 2017-03-15 00:51:24 -03:00
parent e1f655a37d
commit 19e98af8e3
3 changed files with 8 additions and 8 deletions

View file

@ -52,7 +52,7 @@ static AFILE * file_reopen(struct file_direction *dir)
if (dir->handle)
afclose(dir->handle);
return afopen(uri, dir->mode, 0);
return afopen(uri, dir->mode);
}
static int file_parse_direction(config_setting_t *cfg, struct file *f, int d)

View file

@ -103,7 +103,7 @@ int super_node_parse_uri(struct super_node *sn, const char *uri)
}
/* Use advio (libcurl) to fetch the config from a remote */
else {
af = afopen(uri, "r", 0);
af = afopen(uri, "r");
f = af ? af->file : NULL;
}

View file

@ -28,7 +28,7 @@ Test(advio, download)
size_t len;
char buffer[64];
af = afopen(BASE_URI "/download" , "r", 0);
af = afopen(BASE_URI "/download" , "r");
cr_assert(af, "Failed to download file");
len = afread(buffer, 1, sizeof(buffer), af);
@ -51,7 +51,7 @@ Test(advio, upload)
char buffer[tlen];
/* Open file for writing */
af = afopen(BASE_URI "/upload", "w+", 0);
af = afopen(BASE_URI "/upload", "w+");
cr_assert(af, "Failed to download file");
len = afwrite(TEST_DATA_UPLOAD, 1, strlen(TEST_DATA_UPLOAD), af);
@ -61,7 +61,7 @@ Test(advio, upload)
cr_assert_eq(ret, 0, "Failed to close/upload file");
/* Open for reading and comparison */
af = afopen(BASE_URI "/upload", "r", 0);
af = afopen(BASE_URI "/upload", "r");
cr_assert(af, "Failed to download file");
len = afread(buffer, 1, strlen(TEST_DATA_UPLOAD), af);
@ -85,7 +85,7 @@ Test(advio, append)
char buffer[tlen];
/* Open file for writing first chunk */
af = afopen(BASE_URI "/append", "w+", 0);
af = afopen(BASE_URI "/append", "w+");
cr_assert(af, "Failed to download file");
len = afwrite(TEST_DATA_APPEND1, 1, strlen(TEST_DATA_APPEND1), af);
@ -95,7 +95,7 @@ Test(advio, append)
cr_assert_eq(ret, 0, "Failed to close/upload file");
/* Open file for writing second chunk */
af = afopen(BASE_URI "/append", "a", 0);
af = afopen(BASE_URI "/append", "a");
cr_assert(af, "Failed to download file");
len = afwrite(TEST_DATA_APPEND1, 1, strlen(TEST_DATA_APPEND2), af);
@ -105,7 +105,7 @@ Test(advio, append)
cr_assert_eq(ret, 0, "Failed to close/upload file");
/* Open for reading and comparison */
af = afopen(BASE_URI "/append", "r", 0);
af = afopen(BASE_URI "/append", "r");
cr_assert(af, "Failed to download file");
len = afread(buffer, 1, tlen, af);