mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-28 03:25:27 +03:00
test-resolved: follow coding style, use fopen() with 'e'
This commit is contained in:
parent
205c085bc3
commit
7612719ef4
@ -9,7 +9,7 @@
|
||||
static void test_parse_etc_hosts_system(void) {
|
||||
_cleanup_fclose_ FILE *f = NULL;
|
||||
|
||||
f = fopen("/etc/hosts", "r");
|
||||
f = fopen("/etc/hosts", "re");
|
||||
if (!f) {
|
||||
assert_se(errno == -ENOENT);
|
||||
return;
|
||||
@ -27,7 +27,7 @@ static void test_parse_etc_hosts(const char *fname) {
|
||||
_cleanup_fclose_ FILE *f;
|
||||
|
||||
if (fname) {
|
||||
f = fopen(fname, "r");
|
||||
f = fopen(fname, "re");
|
||||
assert_se(f);
|
||||
} else {
|
||||
fd = mkostemp_safe(t);
|
||||
|
Loading…
Reference in New Issue
Block a user