=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tput/tput.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- src/usr.bin/tput/tput.c 2014/10/08 04:10:47 1.20 +++ src/usr.bin/tput/tput.c 2015/01/16 06:40:13 1.21 @@ -1,4 +1,4 @@ -/* $OpenBSD: tput.c,v 1.20 2014/10/08 04:10:47 doug Exp $ */ +/* $OpenBSD: tput.c,v 1.21 2015/01/16 06:40:13 deraadt Exp $ */ /* * Copyright (c) 1999 Todd C. Miller @@ -44,8 +44,6 @@ * SUCH DAMAGE. */ -#include - #include #include #include @@ -54,8 +52,11 @@ #include #include #include +#include #include +#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b)) + #include static void init(void); @@ -229,7 +230,7 @@ } } } - arg_need = MAX(arg_need, popcount); + arg_need = MAXIMUM(arg_need, popcount); if (arg_need > 9) errx(2, "too many arguments (%d) for capability `%s'", arg_need, cap);