From patchwork Thu Dec 7 18:18:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaakov Selkowitz X-Patchwork-Id: 121049 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8694554qgn; Thu, 7 Dec 2017 10:20:27 -0800 (PST) X-Google-Smtp-Source: AGs4zMbSzeLiUVkcLfetjhM6J2By0Fboa3JPUCi6fLSKoZC97rQj9aP6Tv8mESIcazPSG5tGU/NZ X-Received: by 10.84.212.151 with SMTP id e23mr27003694pli.449.1512670827190; Thu, 07 Dec 2017 10:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512670827; cv=none; d=google.com; s=arc-20160816; b=GvO/wczhMQfhDJAldsTI+w/vWg9GowwVeDR5HBh4TvcA3DLMZAXj2TggXKfwpAvr3r qUjBtBy+kesmhmMRfFK725LF/fPRrG3/mLd9IRz+1WuXtm339A7Ubldo0nUpQDqt1cE1 8+oJXH8WxoazaF73hpGsHxmg0RItqfKMIPyvoPrZM9W9t7fNXNouI6nHk2lsvsmBuWeB ViD1uY7EHdyo3q/BBwtSYYE9kXGWAc03NbYFZHQZd+WspOt1kmZ7K+Z8kHYzJJYV0qUa 2RTvkIZTJW5oUC+YclZxrrEi4HJK30avqNmFLiSPnW2JXj1hksc5eDSxRW+lTkuh7o5I 57cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from:delivered-to :sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=V4KNxotkZp+QOk1bfZoEnkW60Y71cNCoslPX41bhTxo=; b=uJRuh5O/0skrU/tExljlhdI6nUYvG208XiU5S3W/X+Z0fYi8zUVFvPiflqeVpLCDM8 bCj0Z7ZutEZLbhNLLAogHu8SYHImidaCpDfFCX4CYq8gOKz349+AnjhgsOYOtx4VD5/l o44tVC7Y1iVK5ECK4kduV6KdZ6XRyg8leXD7bhnnR+E0s7Be+tFz9s+fumrsvdbDpIr5 sQq1DrDFXpkb4Stg6w/gHgId8/Nt4OGKUyCqReZiEj8gpsQkV7l72D1CwXTyvtumuu8T zcnmKwhm/245tBY6WR6VlwnRV6JYro8L+o4xSFP3xjqDi0VzhlFEzB7VqHCN0XYncyIh p/gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=KABrQMOu; spf=pass (google.com: domain of newlib-return-15487-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15487-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id s64si4511913pfj.279.2017.12.07.10.20.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 10:20:27 -0800 (PST) Received-SPF: pass (google.com: domain of newlib-return-15487-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=KABrQMOu; spf=pass (google.com: domain of newlib-return-15487-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15487-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=URKW8EJrFxHJaX+W1DwaTLSDkkorU5R zlHjj6RskeyTE1OQX6KSxZBAuFM0Muw7L1ttRND3kpaUUszoePlF3TxTUOIr4AqJ eAOMf0Vn4Bu2ARVQbsoHILkg4ASz0E/76zPWfX5Yw0bN81ypyE03CW/Nr4q6kW5V vyitHZuDDBs0= 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:subject:date:message-id:in-reply-to :references; s=default; bh=HqKeNbbJoNFJwhKLTy7g8sBNo88=; b=KABrQ MOuKGGuJtx0ihz/wYVmF7476cLun1TDlciuRGISm7eH9oivLnBC4xEPvWH4zO7/M jB8+mIXJVb2evHGO8y0kWBCWaNVelt5NAEUWw6uO+ZLUuMQf65B0DV7xk+FAdYzQ 8TeWkKDWHh147CP4iYyCOuwtqSjk9wTqB2pMBI= Received: (qmail 59416 invoked by alias); 7 Dec 2017 18:19:44 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Delivered-To: mailing list newlib@sourceware.org Received: (qmail 59391 invoked by uid 89); 7 Dec 2017 18:19:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:1823 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 07 Dec 2017 18:19:42 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A845613A5F for ; Thu, 7 Dec 2017 18:19:41 +0000 (UTC) Received: from localhost.localdomain (ovpn-120-70.rdu2.redhat.com [10.10.120.70]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2CAAB7849F for ; Thu, 7 Dec 2017 18:19:41 +0000 (UTC) From: Yaakov Selkowitz To: newlib@sourceware.org Subject: [PATCH v2 04/17] ansification: remove _NOARGS Date: Thu, 7 Dec 2017 12:18:56 -0600 Message-Id: <20171207181909.1112-5-yselkowi@redhat.com> In-Reply-To: <20171207181909.1112-1-yselkowi@redhat.com> References: <20171207181909.1112-1-yselkowi@redhat.com> Signed-off-by: Yaakov Selkowitz --- libgloss/libnosys/fork.c | 2 +- libgloss/libnosys/getpid.c | 2 +- libgloss/mcore/cmb-inbyte.c | 2 +- newlib/libc/include/_ansi.h | 4 +--- 4 files changed, 4 insertions(+), 6 deletions(-) -- 2.15.1 diff --git a/libgloss/libnosys/fork.c b/libgloss/libnosys/fork.c index f5795cb49..5fbf68b93 100644 --- a/libgloss/libnosys/fork.c +++ b/libgloss/libnosys/fork.c @@ -12,7 +12,7 @@ extern int errno; int _DEFUN (_fork, (), - _NOARGS) + void) { errno = ENOSYS; return -1; diff --git a/libgloss/libnosys/getpid.c b/libgloss/libnosys/getpid.c index 0ea19238e..9ed416c6b 100644 --- a/libgloss/libnosys/getpid.c +++ b/libgloss/libnosys/getpid.c @@ -12,7 +12,7 @@ extern int errno; int _DEFUN (_getpid, (), - _NOARGS) + void) { errno = ENOSYS; return -1; diff --git a/libgloss/mcore/cmb-inbyte.c b/libgloss/mcore/cmb-inbyte.c index 0b0b8f5d8..839ffe605 100644 --- a/libgloss/mcore/cmb-inbyte.c +++ b/libgloss/mcore/cmb-inbyte.c @@ -16,7 +16,7 @@ int _DEFUN (inbyte, (), - _NOARGS) + void) { return -1; diff --git a/newlib/libc/include/_ansi.h b/newlib/libc/include/_ansi.h index a09bfac08..41623f7a7 100644 --- a/newlib/libc/include/_ansi.h +++ b/newlib/libc/include/_ansi.h @@ -48,7 +48,6 @@ #ifdef _HAVE_STDC #define _PTR void * -#define _NOARGS void #define _VOLATILE volatile #define _SIGNED signed #define _VOID void @@ -64,7 +63,7 @@ #define _EXFNPTR(name, proto) (* name) proto #endif #define _DEFUN(name, arglist, args) name(args) -#define _DEFUN_VOID(name) name(_NOARGS) +#define _DEFUN_VOID(name) name(void) #define _CAST_VOID (void) #ifndef _LONG_DOUBLE #define _LONG_DOUBLE long double @@ -74,7 +73,6 @@ #endif #else #define _PTR char * -#define _NOARGS #define _VOLATILE #define _SIGNED #define _VOID void