Date: Sat, 30 Jul 2016 07:28:15 +0000 (UTC) From: Marcelo Araujo <araujo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r303547 - head/usr.bin/indent Message-ID: <201607300728.u6U7SFPb002533@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: araujo Date: Sat Jul 30 07:28:15 2016 New Revision: 303547 URL: https://svnweb.freebsd.org/changeset/base/303547 Log: Use nitems() from sys/param.h. MFC after: 2 weeks. Sponsored by: gandi.net (BSD Day Taiwan) Modified: head/usr.bin/indent/indent.c Modified: head/usr.bin/indent/indent.c ============================================================================== --- head/usr.bin/indent/indent.c Sat Jul 30 07:15:54 2016 (r303546) +++ head/usr.bin/indent/indent.c Sat Jul 30 07:28:15 2016 (r303547) @@ -1138,7 +1138,7 @@ check_type: while ((c = getc(input)) == '\n'); ungetc(c, input); } - if ((size_t)ifdef_level < sizeof(state_stack)/sizeof(state_stack[0])) { + if ((size_t)ifdef_level < nitems(state_stack)) { match_state[ifdef_level].tos = -1; state_stack[ifdef_level++] = ps; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607300728.u6U7SFPb002533>