remove some unneccessary checks - thanks to Petr Uzel
This commit is contained in:
2
Makefile
2
Makefile
@@ -11,7 +11,7 @@ man8 := $(DESTDIR)/share/man/man8/
|
||||
all: nethogs decpcap_test
|
||||
# nethogs_testsum
|
||||
|
||||
CFLAGS=-g -Wall
|
||||
CFLAGS=-g -Wall -Wextra
|
||||
#CFLAGS=-O2
|
||||
OBJS=packet.o connection.o process.o refresh.o decpcap.o cui.o inode2prog.o conninode.o
|
||||
.PHONY: tgz
|
||||
|
||||
3
cui.cpp
3
cui.cpp
@@ -37,7 +37,6 @@ public:
|
||||
{
|
||||
if (!ROBUST)
|
||||
{
|
||||
assert (uid >= 0);
|
||||
assert (pid >= 0);
|
||||
}
|
||||
m_name = name;
|
||||
@@ -48,7 +47,6 @@ public:
|
||||
m_uid = uid;
|
||||
if (!ROBUST)
|
||||
{
|
||||
assert (m_uid >= 0);
|
||||
assert (m_pid >= 0);
|
||||
}
|
||||
}
|
||||
@@ -88,7 +86,6 @@ void Line::show (int row)
|
||||
{
|
||||
if (!ROBUST)
|
||||
{
|
||||
assert (m_uid >= 0);
|
||||
assert (m_pid >= 0);
|
||||
assert (m_pid <= 100000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user