]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fixup _get_osfhandle calls
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 5 Jul 2016 07:46:16 +0000 (07:46 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 5 Jul 2016 07:46:16 +0000 (07:46 +0000)
git-svn-id: file:///svn/unbound/trunk@3809 be551aaa-1e26-0410-a405-d3ace91eadb9

smallapp/unbound-anchor.c
validator/autotrust.c

index 16009d845cd7b1f1f4bd8a5fab8ce1af7066958c..b3bba6c249b7e8e302bfb819ba43c3181e1bfc7d 100644 (file)
@@ -1836,7 +1836,7 @@ write_unsigned_root(const char* root_anchor_file)
 #ifdef HAVE_FSYNC
        fsync(fileno(out));
 #else
-       FlushFileBuffers((HANDLE)get_osfhandle(_fileno(out)));
+       FlushFileBuffers((HANDLE)_get_osfhandle(_fileno(out)));
 #endif
        fclose(out);
 }
@@ -1868,7 +1868,7 @@ write_root_anchor(const char* root_anchor_file, BIO* ds)
 #ifdef HAVE_FSYNC
        fsync(fileno(out));
 #else
-       FlushFileBuffers((HANDLE)get_osfhandle(_fileno(out)));
+       FlushFileBuffers((HANDLE)_get_osfhandle(_fileno(out)));
 #endif
        fclose(out);
 }
index a5924f0ed374b6be063941702cf61fe02722d6a6..f76aec2c1f2c4b1d38bbd135f3e554fec94f72d8 100644 (file)
@@ -1201,7 +1201,7 @@ void autr_write_file(struct module_env* env, struct trust_anchor* tp)
        if(fsync(fileno(out)) != 0)
                log_err("could not fsync(%s): %s", fname, strerror(errno));
 #else
-       FlushFileBuffers((HANDLE)get_osfhandle(_fileno(out)));
+       FlushFileBuffers((HANDLE)_get_osfhandle(_fileno(out)));
 #endif
        if(fclose(out) != 0) {
                fatal_exit("could not complete write: %s: %s",