]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
Remove dead code in nl-list-sockets
authorThomas Graf <tgr@lsx.localdomain>
Tue, 29 Apr 2008 08:50:23 +0000 (10:50 +0200)
committerThomas Graf <tgr@lsx.localdomain>
Tue, 29 Apr 2008 08:50:23 +0000 (10:50 +0200)
src/nl-list-sockets.c

index 59618425a076616a98016ee9e59e79064853b08f..f769adc15a7f09616eb6ce3106c46a726235eac0 100644 (file)
 
 #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");