From: Wouter Wijngaards Date: Tue, 5 Jul 2016 07:46:16 +0000 (+0000) Subject: Fixup _get_osfhandle calls X-Git-Tag: release-1.5.10~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a39f48deb78bd2563485fde103b843cbaffe92e;p=thirdparty%2Funbound.git Fixup _get_osfhandle calls git-svn-id: file:///svn/unbound/trunk@3809 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/smallapp/unbound-anchor.c b/smallapp/unbound-anchor.c index 16009d845..b3bba6c24 100644 --- a/smallapp/unbound-anchor.c +++ b/smallapp/unbound-anchor.c @@ -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); } diff --git a/validator/autotrust.c b/validator/autotrust.c index a5924f0ed..f76aec2c1 100644 --- a/validator/autotrust.c +++ b/validator/autotrust.c @@ -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",