diff options
author | Thomas Graf <tgr@lsx.localdomain> | 2008-04-29 08:50:23 (GMT) |
---|---|---|
committer | Thomas Graf <tgr@lsx.localdomain> | 2008-04-29 08:50:23 (GMT) |
commit | 22f0ece5acc0d1cbe556c1dd2a11bb42d27cab0c (patch) | |
tree | 64e5c7817fc187d7be3c029de2fc6c19b6d6353a /src/nl-list-sockets.c | |
parent | 25ccbf1dab4d40ddd0fa5343c31aed0a49d76c46 (diff) | |
download | libnl-22f0ece5acc0d1cbe556c1dd2a11bb42d27cab0c.zip libnl-22f0ece5acc0d1cbe556c1dd2a11bb42d27cab0c.tar.gz libnl-22f0ece5acc0d1cbe556c1dd2a11bb42d27cab0c.tar.bz2 |
Remove dead code in nl-list-sockets
Diffstat (limited to 'src/nl-list-sockets.c')
-rw-r--r-- | src/nl-list-sockets.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/nl-list-sockets.c b/src/nl-list-sockets.c index 5961842..f769adc 100644 --- a/src/nl-list-sockets.c +++ b/src/nl-list-sockets.c @@ -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"); |