[Midnightbsd-cvs] src [11486] trunk/usr.bin/mail: cast

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Jul 7 13:30:03 EDT 2018


Revision: 11486
          http://svnweb.midnightbsd.org/src/?rev=11486
Author:   laffer1
Date:     2018-07-07 13:30:03 -0400 (Sat, 07 Jul 2018)
Log Message:
-----------
cast

Modified Paths:
--------------
    trunk/usr.bin/mail/lex.c
    trunk/usr.bin/mail/popen.c

Modified: trunk/usr.bin/mail/lex.c
===================================================================
--- trunk/usr.bin/mail/lex.c	2018-07-07 17:29:29 UTC (rev 11485)
+++ trunk/usr.bin/mail/lex.c	2018-07-07 17:30:03 UTC (rev 11486)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
 /*
  * Copyright (c) 1980, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -33,7 +34,7 @@
 #endif
 #endif /* not lint */
 #include <sys/cdefs.h>
-__MBSDID("$MidnightBSD$");
+__FBSDID("$FreeBSD: stable/10/usr.bin/mail/lex.c 228468 2011-12-13 13:32:56Z ed $");
 
 #include "rcv.h"
 #include <errno.h>
@@ -482,7 +483,7 @@
  * to the passed command "word"
  */
 
-__const struct cmd *
+const struct cmd *
 lex(char word[])
 {
 	const struct cmd *cp;

Modified: trunk/usr.bin/mail/popen.c
===================================================================
--- trunk/usr.bin/mail/popen.c	2018-07-07 17:29:29 UTC (rev 11485)
+++ trunk/usr.bin/mail/popen.c	2018-07-07 17:30:03 UTC (rev 11486)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
 /*
  * Copyright (c) 1980, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -33,7 +34,7 @@
 #endif
 #endif /* not lint */
 #include <sys/cdefs.h>
-__MBSDID("$MidnightBSD$");
+__FBSDID("$FreeBSD: stable/10/usr.bin/mail/popen.c 252679 2013-07-04 03:24:58Z kevlo $");
 
 #include "rcv.h"
 #include <sys/wait.h>
@@ -316,7 +317,7 @@
 	int status;
 	struct child *cp;
 
-	while ((pid = waitpid((pid_t)-1, &status, WNOHANG)) > 0) {
+	while ((pid = waitpid(-1, &status, WNOHANG)) > 0) {
 		cp = findchild(pid);
 		if (cp->free)
 			delchild(cp);



More information about the Midnightbsd-cvs mailing list