Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
---
src/iptraf.c | 5 -----
src/rvnamed.c | 4 ----
src/tui/input.c | 2 --
3 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/src/iptraf.c b/src/iptraf.c
index a7335a5..084385f 100644
--- a/src/iptraf.c
+++ b/src/iptraf.c
@@ -337,10 +337,8 @@ int main(int argc, char **argv)
int command = 0;
int current_log_interval = 0;
-#ifndef ALLOWUSERS
if (geteuid() != 0)
die("This program can be run only by the system administrator");
-#endif
/*
* Parse command line
@@ -464,10 +462,7 @@ int main(int argc, char **argv)
noecho();
nonl();
cbreak();
-
-#ifndef DEBUG
curs_set(0);
-#endif
/*
* Set logfilename variable to NULL if -L was specified without an
diff --git a/src/rvnamed.c b/src/rvnamed.c
index 6171f17..0fe8ea7 100644
--- a/src/rvnamed.c
+++ b/src/rvnamed.c
@@ -208,7 +208,6 @@ int main(void)
/* Daemonization Sequence */
-#ifndef DEBUG
switch (fork()) {
case -1:
exit(1);
@@ -222,7 +221,6 @@ int main(void)
int i = chdir("/");
(void) i;
-#endif
signal(SIGCHLD, childreap);
@@ -358,7 +356,6 @@ int main(void)
strlen(fromaddr.sun_path));
break;
case RVN_QUIT:
-#ifndef DEBUG
writervnlog(logfile,
"Received quit instruction");
writervnlog(logfile, "Closing sockets");
@@ -376,7 +373,6 @@ int main(void)
"******** rvnamed terminated ********");
fclose(logfile);
exit(0);
-#endif
case RVN_REQUEST:
readyidx =
name_resolved(&rvnpacket, hostlist,
diff --git a/src/tui/input.c b/src/tui/input.c
index e363722..b0742c3 100644
--- a/src/tui/input.c
+++ b/src/tui/input.c
@@ -84,9 +84,7 @@ void tx_getinput(struct FIELDLIST *list, struct FIELD *field, int
*exitkey)
do {
ch = wgetch(list->fieldwin);
switch (ch) {
-#ifndef DISABLEBS
case KEY_BACKSPACE:
-#endif
case 7:
case 8:
case KEY_DC:
--
1.7.8.4