From: guy Date: Sun, 1 May 2005 19:57:31 +0000 (+0000) Subject: Get rid of a redundant test (if we're in that branch of code, we've set X-Git-Tag: libpcap-1.1.0~626 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/37bd0411b437e6008eeb73f3bb2fe5962f06d7ce Get rid of a redundant test (if we're in that branch of code, we've set fp to stdin, so we know it's equal to stdin), and update a comment. --- diff --git a/savefile.c b/savefile.c index eb1a65ab..cea18277 100644 --- a/savefile.c +++ b/savefile.c @@ -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 {