masqmail
diff src/libident/id_close.c @ 0:08114f7dcc23
this is masqmail-0.2.21 from oliver kurth
author | meillo@marmaro.de |
---|---|
date | Fri, 26 Sep 2008 17:05:23 +0200 |
parents | |
children | 26e34ae9a3e3 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/libident/id_close.c Fri Sep 26 17:05:23 2008 +0200 1.3 @@ -0,0 +1,29 @@ 1.4 +/* 1.5 +** id_close.c Close a connection to an IDENT server 1.6 +** 1.7 +** Author: Peter Eriksson <pen@lysator.liu.se> 1.8 +*/ 1.9 + 1.10 +#ifdef NeXT3 1.11 +# include <libc.h> 1.12 +#endif 1.13 + 1.14 +#ifdef HAVE_ANSIHEADERS 1.15 +# include <stdlib.h> 1.16 +# include <unistd.h> 1.17 +#endif 1.18 + 1.19 +#define IN_LIBIDENT_SRC 1.20 +#include "ident.h" 1.21 + 1.22 +int id_close __P1(ident_t *, id) 1.23 +{ 1.24 + int res; 1.25 + 1.26 + res = close(id->fd); 1.27 + free(id); 1.28 + 1.29 + return res; 1.30 +} 1.31 + 1.32 +