From 7d8353acd4bee166bfa45ae38f3657c783faf106 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Tue, 28 Jun 2011 21:03:25 -0700 Subject: [PATCH] Further cleanups to eliminate compile warnings. --- sersniff.c | 2 -- tcp.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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_ */ -- 2.39.5