svn commit: r298909 - head/usr.sbin/inetd

Marcelo Araujo araujo at FreeBSD.org
Mon May 2 01:43:23 UTC 2016


Author: araujo
Date: Mon May  2 01:43:22 2016
New Revision: 298909
URL: https://svnweb.freebsd.org/changeset/base/298909

Log:
  Use MAX macro from sys/param.h.
  
  MFC after:	2 weeks.

Modified:
  head/usr.sbin/inetd/inetd.c

Modified: head/usr.sbin/inetd/inetd.c
==============================================================================
--- head/usr.sbin/inetd/inetd.c	Mon May  2 01:40:31 2016	(r298908)
+++ head/usr.sbin/inetd/inetd.c	Mon May  2 01:43:22 2016	(r298909)
@@ -1934,7 +1934,7 @@ more:
 		if (sep->se_bi && sep->se_bi->bi_maxchild >= 0)
 			sep->se_maxchild = sep->se_bi->bi_maxchild;
 		else if (sep->se_accept) 
-			sep->se_maxchild = maxchild > 0 ? maxchild : 0;
+			sep->se_maxchild = MAX(maxchild, 0);
 		else
 			sep->se_maxchild = 1;
 	}


More information about the svn-src-all mailing list