File: id_close.c

package info (click to toggle)
sident 3.6-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,960 kB
  • ctags: 719
  • sloc: sh: 8,131; ansic: 6,784; makefile: 231; perl: 147
file content (22 lines) | stat: -rw-r--r-- 337 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: id_close.c 550 2004-06-17 01:27:41Z eagle $
**
**  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;
}