1 /*
2 ** id_close.c                            Close a connection to an IDENT server
3 **
4 ** Author: Peter Eriksson <pen@lysator.liu.se>
5 */
6 
7 #if HAVE_CONFIG_H
8 # include "config.h"
9 #endif
10 #include <stdlib.h>
11 
12 #if HAVE_UNISTD_H
13 # include <unistd.h>
14 #endif
15 
16 #define IN_LIBIDENT_SRC
17 #include "ident.h"
18 
id_close(ident_t * id)19 int id_close (ident_t *id)
20 {
21     int res;
22 
23     res = close(id->fd);
24     free(id);
25 
26     return res;
27 }
28