dect
/
libnl
Archived
13
0
Fork 0

Remove dead code in nl-list-sockets

This commit is contained in:
Thomas Graf 2008-04-29 10:50:23 +02:00
parent 25ccbf1dab
commit 22f0ece5ac
1 changed files with 0 additions and 9 deletions

View File

@ -13,20 +13,11 @@
#define PROC_NETLINK "/proc/net/netlink"
static void print_usage(void)
{
fprintf(stderr, "Usage: nl-list-sockets [<file>]\n");
exit(1);
}
int main(int argc, char *argv[])
{
FILE *fd;
char buf[2048], p[64];
if (argc > 1 && !strcasecmp(argv[1], "-h"))
print_usage();
fd = fopen(PROC_NETLINK, "r");
if (fd == NULL) {
perror("fopen");