masqmail
view src/libident/id_close.c @ 1:af25f5c39d90
added diff from debian (masqmail-0.2.21-4)
author | meillo@marmaro.de |
---|---|
date | Fri, 26 Sep 2008 20:56:23 +0200 |
parents | |
children | 26e34ae9a3e3 |
line source
1 /*
2 ** id_close.c Close a connection to an IDENT server
3 **
4 ** Author: Peter Eriksson <pen@lysator.liu.se>
5 */
7 #ifdef NeXT3
8 # include <libc.h>
9 #endif
11 #ifdef HAVE_ANSIHEADERS
12 # include <stdlib.h>
13 # include <unistd.h>
14 #endif
16 #define IN_LIBIDENT_SRC
17 #include "ident.h"
19 int id_close __P1(ident_t *, id)
20 {
21 int res;
23 res = close(id->fd);
24 free(id);
26 return res;
27 }