summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sendmail/rmail/rmail.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-03-31 05:11:47 +0000
committerimp <imp@FreeBSD.org>1997-03-31 05:11:47 +0000
commit691010efad5c05f7ee86a870abce217fe8e9b8d1 (patch)
treeb28e04577780319990238a98e7549582e44d9d51 /usr.sbin/sendmail/rmail/rmail.c
parent3d7b78ed8c2fd06816b04ddcb57d58281409aa62 (diff)
downloadFreeBSD-src-691010efad5c05f7ee86a870abce217fe8e9b8d1.zip
FreeBSD-src-691010efad5c05f7ee86a870abce217fe8e9b8d1.tar.gz
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Diffstat (limited to 'usr.sbin/sendmail/rmail/rmail.c')
-rw-r--r--usr.sbin/sendmail/rmail/rmail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sendmail/rmail/rmail.c b/usr.sbin/sendmail/rmail/rmail.c
index 7a33f54..f330622 100644
--- a/usr.sbin/sendmail/rmail/rmail.c
+++ b/usr.sbin/sendmail/rmail/rmail.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: rmail.c,v 1.4 1997/02/22 16:13:27 peter Exp $
*/
#ifndef lint
@@ -105,7 +105,7 @@ main(argc, argv)
debug = 0;
domain = "UUCP"; /* Default "domain". */
- while ((ch = getopt(argc, argv, "D:T")) != EOF)
+ while ((ch = getopt(argc, argv, "D:T")) != -1)
switch (ch) {
case 'T':
debug = 1;
OpenPOWER on IntegriCloud