]> The Tcpdump Group git mirrors - libpcap/commitdiff
Get rid of a redundant test (if we're in that branch of code, we've set
authorguy <guy>
Sun, 1 May 2005 19:57:31 +0000 (19:57 +0000)
committerguy <guy>
Sun, 1 May 2005 19:57:31 +0000 (19:57 +0000)
fp to stdin, so we know it's equal to stdin), and update a comment.

savefile.c

index eb1a65ab2f26686432ff5bf6a17d29881e1309c1..cea18277a490993d1e6bda29917b32556ff1ba91 100644 (file)
@@ -30,7 +30,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.131 2005-05-01 19:53:11 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.132 2005-05-01 19:57:31 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -737,11 +737,10 @@ pcap_open_offline(const char *fname, char *errbuf)
                fp = stdin;
 #if defined(WIN32) || defined(MSDOS)
                /*
-                * If we're reading from the standard input, put it in binary
+                * We're reading from the standard input, so put it in binary
                 * mode, as savefiles are binary files.
                 */
-               if (fp == stdin)
-                       SET_BINMODE(fp);
+               SET_BINMODE(fp);
 #endif
        }
        else {