X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-sys%2Funix.c;h=38389b2776be60ae055c56d6b304b13f98654a7d;hp=30a75dc60cf4afc2b48e227b20ad66b26ec8ae39;hb=558b0bd9de90a9dc28f409d8f46679bf48c72ded;hpb=230399f9632c37b66c1c117a17e8327eae6b3235 diff --git a/lib-sys/unix.c b/lib-sys/unix.c index 30a75dc..38389b2 100644 --- a/lib-sys/unix.c +++ b/lib-sys/unix.c @@ -8,12 +8,6 @@ * please see the file GPL in the top level source directory. */ -#include -#include -#include -#include -#include - #include #include "unix.h" @@ -181,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; } @@ -189,6 +183,6 @@ int getdnsdomainname(char *s, ssize_t n) } } - safe_fclose (&f); + m_fclose(&f); return -1; }