From patchwork Wed Apr 29 20:35:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland McGrath X-Patchwork-Id: 6491 Received: (qmail 45733 invoked by alias); 29 Apr 2015 20:35:57 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 45617 invoked by uid 89); 29 Apr 2015 20:35:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_05, KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: topped-with-meat.com MIME-Version: 1.0 From: Roland McGrath To: "GNU C. Library" Subject: [COMMITTED PATCH] NaCl: Make __suseconds_t be long int rather than int32_t. Message-Id: <20150429203553.856B32C3B92@topped-with-meat.com> Date: Wed, 29 Apr 2015 13:35:53 -0700 (PDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=SvUDtp+0 c=1 sm=1 tr=0 a=WkljmVdYkabdwxfqvArNOQ==:117 a=14OXPxybAAAA:8 a=kj9zAlcOel0A:10 a=hOe2yjtxAAAA:8 a=GkWrNOJilP1R-Fi11o0A:9 a=CjuIK1q_8ugA:10 2015-04-29 Roland McGrath * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use __SLONGWORD_TYPE rather than __S32_TYPE. They are the same size, but __suseconds_t is often 'long int' so some sources assume that type is being used (e.g. they use %ld to print tv_usec). diff --git a/sysdeps/nacl/bits/typesizes.h b/sysdeps/nacl/bits/typesizes.h index 2a29035..6443886 100644 --- a/sysdeps/nacl/bits/typesizes.h +++ b/sysdeps/nacl/bits/typesizes.h @@ -49,7 +49,7 @@ #define __CLOCK_T_TYPE __SQUAD_TYPE #define __TIME_T_TYPE __SQUAD_TYPE #define __USECONDS_T_TYPE __U32_TYPE -#define __SUSECONDS_T_TYPE __S32_TYPE +#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE #define __DADDR_T_TYPE __S32_TYPE #define __KEY_T_TYPE __S32_TYPE #define __CLOCKID_T_TYPE __S32_TYPE