From patchwork Thu Aug 3 22:39:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 797510 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-82722-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="I455S7pw"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xNlPK1RF2z9s7g for ; Fri, 4 Aug 2017 08:40:04 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=gI8smAOdtqEVAWWK92ogFHJlyKDqYAWD+zyfKzYUv9bJ+tbGMjtnQ Xevcp3A0e48401J24Dilr2NStIijGquGIEwziiPvSicaoYCPz2SdgWv0ylimTdNR Cu6PG4TnAj2ioYZ5jT/YeumqXmf6rZi6K1uH5gNi7u8gCYBno6dB6g= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=6It2qNQ6UFSCdrxjXFhEpcyVxyU=; b=I455S7pwX4aE8uOTJw/F9yu5CnGl D8Z+t4yppZeBR6XcLvFKLlSaR07gB+Iy6eitcn7b9AekVP8HS6VwMzvm/Bw8CTDY mV6lzz4unP4o/TiA80MwJm/fLOBtCsNCjEPXCgkfyAbH0O7u1B7lrqENQQIXtSC5 o3ANaTkh9sqLCGs= Received: (qmail 35171 invoked by alias); 3 Aug 2017 22:39:58 -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 35157 invoked by uid 89); 3 Aug 2017 22:39:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD, URIBL_RED autolearn=ham version=3.3.2 spammy=randomness X-HELO: hall.aurel32.net From: Aurelien Jarno To: libc-alpha@sourceware.org Cc: Aurelien Jarno Subject: [PATCH COMMITTED] Fix the return type of the getentropy stub Date: Fri, 4 Aug 2017 00:39:41 +0200 Message-Id: <20170803223941.19206-1-aurelien@aurel32.net> The return type of the getentropy stub is wrongly defined as ssize_t, while both the header and the Linux implementation define it as int. This patch fixes that. Changelog: * stdlib/getentropy.c (getentropy): Change return type to int. --- ChangeLog | 4 ++++ stdlib/getentropy.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 90dd59045b..1d336afb25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2017-08-03 Aurelien Jarno + * stdlib/getentropy.c (getentropy): Change return type to int. + +2017-08-03 Aurelien Jarno + * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated. 2017-08-03 Joseph Myers diff --git a/stdlib/getentropy.c b/stdlib/getentropy.c index a71d4cd8f5..a88bbf8de3 100644 --- a/stdlib/getentropy.c +++ b/stdlib/getentropy.c @@ -21,7 +21,7 @@ /* Write LENGTH bytes of randomness starting at BUFFER. Return 0 on success and -1 on failure. */ -ssize_t +int getentropy (void *buffer, size_t length) { __set_errno (ENOSYS);