diff options
author | 2011-11-15 04:24:42 -0500 | |
---|---|---|
committer | 2011-11-15 04:24:42 -0500 | |
commit | 312be3f9f5eab1643d7dcc7728c76d413d4f2640 (patch) | |
tree | 445eab9ef93914585b6625aa6ca93c24715771b7 /hesiod | |
parent | Use O_CLOEXEC in tzfile handling (diff) | |
download | glibc-312be3f9f5eab1643d7dcc7728c76d413d4f2640.tar.gz glibc-312be3f9f5eab1643d7dcc7728c76d413d4f2640.tar.bz2 glibc-312be3f9f5eab1643d7dcc7728c76d413d4f2640.zip |
Clean up internal fopen uses
No need to ever not use c and e.
Diffstat (limited to 'hesiod')
-rw-r--r-- | hesiod/hesiod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hesiod/hesiod.c b/hesiod/hesiod.c index b3706b506b..a3f22e5c88 100644 --- a/hesiod/hesiod.c +++ b/hesiod/hesiod.c @@ -278,7 +278,7 @@ parse_config_file(struct hesiod_p *ctx, const char *filename) { /* * Now open and parse the file... */ - if (!(fp = fopen(filename, "r"))) + if (!(fp = fopen(filename, "rce"))) return (-1); while (fgets(buf, sizeof(buf), fp) != NULL) { @@ -482,7 +482,7 @@ __hesiod_res_get(void *context) { void __hesiod_res_set(void *context, struct __res_state *res, - void (*free_res)(void *)) { + void (*free_res)(void *)) { struct hesiod_p *ctx = context; if (ctx->res && ctx->free_res) { |