From 389238c51ac4d665cd85fce4571b7cd71d8cd216 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Fri, 17 Sep 2004 19:40:45 +0000 Subject: [PATCH] make it compile with g++ 3.0 also --- Makefile | 3 ++- packet.cpp | 2 +- process.cpp | 5 ++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f606c4e..a694067 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,8 @@ man8 := $(DESTDIR)/usr/share/man/man8/ all: nethogs -CFLAGS=-g -Wall -pg +#CFLAGS=-g -Wall -pg +CFLAGS=-O2 OBJS=structs.o packet.o connection.o process.o refresh.o decpcap.o cui.o GCC=g++ .PHONY: tgz diff --git a/packet.cpp b/packet.cpp index 9fd7d8e..3c4a96d 100644 --- a/packet.cpp +++ b/packet.cpp @@ -172,7 +172,7 @@ bool sameinaddr(in_addr one, in_addr other) } bool Packet::isOlderThan (timeval t) { - std::cout << "Comparing " << time.tv_sec << " <= " << t.tv_sec << endl; + std::cout << "Comparing " << time.tv_sec << " <= " << t.tv_sec << std::endl; return (time.tv_sec <= t.tv_sec); } diff --git a/process.cpp b/process.cpp index fde9151..39d1b7b 100644 --- a/process.cpp +++ b/process.cpp @@ -11,7 +11,6 @@ #include #include "process.h" -#include "hashtbl.h" #include "nethogs.h" #include "inodeproc.cpp" @@ -206,14 +205,14 @@ struct prg_node * findPID (unsigned long inode) if (node == NULL) { if (DEBUG) - std::cout << "ITP: inode " << inode << " not in inode-to-pid-mapping - reloading." << endl; + std::cout << "ITP: inode " << inode << " not in inode-to-pid-mapping - reloading." << std::endl; prg_cache_clear(); prg_cache_load(); node = prg_cache_get(inode); if (node == NULL) { if (DEBUG) - std::cout << "ITP: inode " << inode << " STILL not in inode-to-pid-mapping." << endl; + std::cout << "ITP: inode " << inode << " STILL not in inode-to-pid-mapping." << std::endl; return NULL; } }