Nmap Development mailing list archives
[PATCH] Remove tty_done() in nmap_tty.cc under Win32
From: Kris Katterjohn <kjak () ispwest com>
Date: Wed, 08 Mar 2006 23:53:33 -0600
The attached patch removes tty_done() when compiling under Windows. It's never used. This patch also removes the return statement from tty_init() because using return and dropping off the end of a void function are the same. Thanks, Kris
--- nmap_tty.cc.orig 2006-03-08 15:45:01.000000000 -0600
+++ nmap_tty.cc 2006-03-08 23:47:44.000000000 -0600
@@ -125,9 +125,8 @@ extern NmapOps o;
#include <conio.h>
// Microsoft's runtime makes this fairly simple. :)
-void tty_init() { return; }
+void tty_init() { }
static int tty_getchar() { return _kbhit() ? _getch() : -1; }
-static void tty_done() { return; }
#else
#if !defined(O_NONBLOCK) && defined(O_NDELAY)
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev
Current thread:
- [PATCH] Remove tty_done() in nmap_tty.cc under Win32 Kris Katterjohn (Mar 08)
