File: id_close.c

package info (click to toggle)
sident 3.4-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,864 kB
  • ctags: 706
  • sloc: sh: 7,748; ansic: 6,877; makefile: 233; perl: 147
file content (22 lines) | stat: -rw-r--r-- 335 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*  id_close.c,v 1.5 2004/06/17 01:27:40 eagle Exp
**
**  Low-level call to close a connection to an ident server.
**
**  Written by Peter Eriksson <pen@lysator.liu.se>
*/

#include <stdlib.h>
#include <unistd.h>

#include "sident.h"

int
id_close(ident_t *id)
{
    int res;

    res = close(id->fd);
    free(id);

    return res;
}