From: Jonathan McDowell Date: Wed, 29 Jun 2011 04:03:25 +0000 (-0700) Subject: Further cleanups to eliminate compile warnings. X-Git-Tag: sersniff-0.0.5~5 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=7d8353acd4bee166bfa45ae38f3657c783faf106;p=sersniff.git Further cleanups to eliminate compile warnings. --- diff --git a/sersniff.c b/sersniff.c index f12faf4..64e0576 100644 --- a/sersniff.c +++ b/sersniff.c @@ -128,7 +128,6 @@ void outputchar(unsigned char c, int port, int alpha, void mainloop(int port1, int port2, int silent, int alpha, long usec_threshold, char *name1, char *name2, char *format) { unsigned char c1, c2; - int last; int rc; fd_set rfds; fd_set efds; @@ -142,7 +141,6 @@ void mainloop(int port1, int port2, int silent, int alpha, long usec_threshold, /* need the largest fd for the select call */ biggestfd=port1 > port2 ? port1 : port2; biggestfd++; - last=0; while (!quit) { /* reset the select set */ diff --git a/tcp.h b/tcp.h index 378079e..6aa5706 100644 --- a/tcp.h +++ b/tcp.h @@ -11,4 +11,4 @@ int opensock(char *host, int port); int listensock(int port); -#endif __TCP_H_ +#endif /* __TCP_H_ */