]> the.earth.li Git - sersniff.git/blobdiff - sersniff.c
Further cleanups to eliminate compile warnings.
[sersniff.git] / sersniff.c
index f12faf44de92841c28e7e339912713f4be6b7eb0..64e05767fbfa0a3813bc8e68d9015e230e983ef9 100644 (file)
@@ -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 */