Code

src/oping.c: Remove useless "strlen".
[liboping.git] / src / oping.c
index f8f7dd6f1df68d8829b35fcc8a9a12735a814e28..b53974f3c4eacac748778892c0c189b84c022476 100644 (file)
@@ -63,6 +63,7 @@
 #endif
 
 #if USE_NCURSES
+# define NCURSES_OPAQUE 1
 # include <ncurses.h>
 
 # define OPING_GREEN 1
@@ -233,10 +234,6 @@ static int ping_initialize_contexts (pingobj_t *ping) /* {{{ */
 
 static void usage_exit (const char *name, int status) /* {{{ */
 {
-       int name_length;
-
-       name_length = (int) strlen (name);
-
        fprintf (stderr, "Usage: %s [OPTIONS] "
                                "-f filename | host [host [host ...]]\n"