File: id_close.c

package info (click to toggle)
socks4-server 4.3.beta2-20
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 1,512 kB
  • ctags: 1,778
  • sloc: ansic: 19,305; makefile: 399; sh: 52
file content (25 lines) | stat: -rw-r--r-- 304 bytes parent folder | download | duplicates (13)
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
/*
** id_close.c                            Close a connection to an IDENT server
**
** Author: Peter Eriksson <pen@lysator.liu.se>
*/

#include "ident.h"

int id_close
#ifdef __STDC__
  (ident_t *id)
#else
  (id)
ident_t *id;
#endif
{
  int res;
  
  res = close(id->fd);
  free(id);

  return res;
}