diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-08-03 16:48:53 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-08-03 17:36:11 +0200 |
commit | 7612719ef4d322bff9136e88518fee668c0c77e6 (patch) | |
tree | 2548a240d1cbd02c0cf69719f90acc944f9b4791 /src/resolve | |
parent | hashmap: add an explicit assert() for detecting when objects migrated between... (diff) | |
download | systemd-7612719ef4d322bff9136e88518fee668c0c77e6.tar.xz systemd-7612719ef4d322bff9136e88518fee668c0c77e6.zip |
test-resolved: follow coding style, use fopen() with 'e'
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/test-resolved-etc-hosts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/test-resolved-etc-hosts.c b/src/resolve/test-resolved-etc-hosts.c index 5b8f1e220e..b7dba0d780 100644 --- a/src/resolve/test-resolved-etc-hosts.c +++ b/src/resolve/test-resolved-etc-hosts.c @@ -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); |