X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-sys%2Funix.c;h=38389b2776be60ae055c56d6b304b13f98654a7d;hp=a83d4bcf96ee99b4122ddcdb2d25b1b9a0841f3f;hb=f3cbb9f51357972f6e74244494236a41dc4d84cd;hpb=723f7ae3f24f7881c9ce87abf933cd5bec4ac0bc diff --git a/lib-sys/unix.c b/lib-sys/unix.c index a83d4bc..38389b2 100644 --- a/lib-sys/unix.c +++ b/lib-sys/unix.c @@ -8,16 +8,7 @@ * please see the file GPL in the top level source directory. */ -#include -#include -#include -#include -#include - -#include -#include -#include -#include +#include #include "unix.h" #include "mutt_signal.h" @@ -184,7 +175,7 @@ int getdnsdomainname(char *s, ssize_t n) trailing_dot = q[-1] == '.'; if (!trailing_dot || q > p + 1) { m_strncpy(s, n, p, q - trailing_dot - p); - safe_fclose(&f); + m_fclose(&f); return 0; } @@ -192,6 +183,6 @@ int getdnsdomainname(char *s, ssize_t n) } } - safe_fclose (&f); + m_fclose(&f); return -1; }