From owner-svn-src-all@freebsd.org Thu Jul 28 09:50:20 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AECB8BA7731; Thu, 28 Jul 2016 09:50:20 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7BC19189E; Thu, 28 Jul 2016 09:50:20 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u6S9oJYF081488; Thu, 28 Jul 2016 09:50:19 GMT (envelope-from ed@FreeBSD.org) Received: (from ed@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u6S9oJ2E081486; Thu, 28 Jul 2016 09:50:19 GMT (envelope-from ed@FreeBSD.org) Message-Id: <201607280950.u6S9oJ2E081486@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ed set sender to ed@FreeBSD.org using -f From: Ed Schouten Date: Thu, 28 Jul 2016 09:50:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r303427 - in head/include: . xlocale X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2016 09:50:20 -0000 Author: ed Date: Thu Jul 28 09:50:19 2016 New Revision: 303427 URL: https://svnweb.freebsd.org/changeset/base/303427 Log: Change type of MB_CUR_MAX and MB_CUR_MAX_L() to size_t. POSIX requires that MB_CUR_MAX expands to an expression of type size_t. It currently expands to an int. As these are already macros, don't change the underlying type of these functions. There is no ned to touch those. Differential Revision: https://reviews.freebsd.org/D6645 Modified: head/include/stdlib.h head/include/xlocale/_stdlib.h Modified: head/include/stdlib.h ============================================================================== --- head/include/stdlib.h Thu Jul 28 09:09:55 2016 (r303426) +++ head/include/stdlib.h Thu Jul 28 09:50:19 2016 (r303427) @@ -77,7 +77,7 @@ __BEGIN_DECLS #endif extern int __mb_cur_max; extern int ___mb_cur_max(void); -#define MB_CUR_MAX (___mb_cur_max()) +#define MB_CUR_MAX ((size_t)___mb_cur_max()) _Noreturn void abort(void); int abs(int) __pure2; Modified: head/include/xlocale/_stdlib.h ============================================================================== --- head/include/xlocale/_stdlib.h Thu Jul 28 09:09:55 2016 (r303426) +++ head/include/xlocale/_stdlib.h Thu Jul 28 09:50:19 2016 (r303427) @@ -55,5 +55,5 @@ size_t wcstombs_l(char * __restrict, int wctomb_l(char *, wchar_t, locale_t); int ___mb_cur_max_l(locale_t); -#define MB_CUR_MAX_L(x) (___mb_cur_max_l(x)) +#define MB_CUR_MAX_L(x) ((size_t)___mb_cur_max_l(x))