File: id_close.c

package info (click to toggle)
libident 0.32-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,464 kB
  • sloc: sh: 8,260; ansic: 840; makefile: 27
file content (27 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
** id_close.c                            Close a connection to an IDENT server
**
** Author: Peter Eriksson <pen@lysator.liu.se>
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdlib.h>

#if HAVE_UNISTD_H
# include <unistd.h>
#endif

#define IN_LIBIDENT_SRC
#include "ident.h"

int id_close (ident_t *id)
{
    int res;
  
    res = close(id->fd);
    free(id);
    
    return res;
}