From patchwork Wed Aug 16 16:28:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 802134 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-83278-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="PbMt/M/j"; 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 3xXZYN4ClTz9s71 for ; Thu, 17 Aug 2017 02:29:12 +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:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; q=dns; s=default; b= jyH1lh273pjUNUgFlmMTlEBZUPAzX48t7LAEPlQaERAt7F0iqwaH/oxCAfEx/WdO HecaGuIUjLd/h7NdmkM+70RllfgL1+EyK75YzoXt0No+ZjxWgjKE/V2ulhYVFGYi 7fwev/7hH+wZ105oQoRWCceD7QA2Fx6XHnRRMrkW7Hw= 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:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; s=default; bh=/a6Gij P44C+hPg2W0/joUe8euXk=; b=PbMt/M/jQ8cbmRR25lfK7uybdhpAHceTODpJuR kxFeTMrR7dD79QxNDsq3eby99UI4X9FVzXSxBkc1PiUloQp0mrwYc/VznaeCobx3 2GphsUiuw9gz/+Yz5w4ayK3xxniVP2hChCC9MgQI/Zt1p5IyuX9wCw75Xt63SXsC CWFI8= Received: (qmail 122303 invoked by alias); 16 Aug 2017 16:28:28 -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 122141 invoked by uid 89); 16 Aug 2017 16:28:26 -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, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=walked, *skip X-HELO: mx1.redhat.com DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 5521EC05A1A7 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=fweimer@redhat.com Date: Wed, 16 Aug 2017 18:28:21 +0200 To: libc-alpha@sourceware.org Subject: [PATCH] misc: Remove internal_function function attribute User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Message-Id: <20170816162821.706BF41DB799C@oldenburg.str.redhat.com> From: fweimer@redhat.com (Florian Weimer) 2017-08-16 Florian Weimer * misc/getttyent.c (skip, value): Remove internal_function. * misc/syslog.c (openlog_internal): Likewise. * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise. diff --git a/misc/getttyent.c b/misc/getttyent.c index 73002f52d1..0fa4ddbdde 100644 --- a/misc/getttyent.c +++ b/misc/getttyent.c @@ -57,8 +57,8 @@ __getttynam (const char *tty) } weak_alias (__getttynam, getttynam) -static char *skip (char *) __THROW internal_function; -static char *value (char *) __THROW internal_function; +static char *skip (char *) __THROW; +static char *value (char *) __THROW; struct ttyent * __getttyent (void) @@ -141,7 +141,6 @@ weak_alias (__getttyent, getttyent) * the next field. */ static char * -internal_function skip (char *p) { char *t; @@ -175,7 +174,6 @@ skip (char *p) } static char * -internal_function value (char *p) { diff --git a/misc/syslog.c b/misc/syslog.c index 6922ad685c..2b6bd373bc 100644 --- a/misc/syslog.c +++ b/misc/syslog.c @@ -72,7 +72,7 @@ extern char *__progname; /* Program name, from crt0. */ /* Define the lock. */ __libc_lock_define_initialized (static, syslog_lock) -static void openlog_internal(const char *, int, int) internal_function; +static void openlog_internal(const char *, int, int); static void closelog_internal(void); #ifndef NO_SIGPIPE static void sigpipe_handler (int); @@ -330,7 +330,6 @@ static struct sockaddr_un SyslogAddr; /* AF_UNIX address of local logger */ static void -internal_function openlog_internal(const char *ident, int logstat, int logfac) { if (ident != NULL) diff --git a/misc/tsearch.c b/misc/tsearch.c index 5e2e7986d3..aef9c7c1ee 100644 --- a/misc/tsearch.c +++ b/misc/tsearch.c @@ -684,7 +684,6 @@ weak_alias (__tdelete, tdelete) ROOT is the root of the tree to be walked, ACTION the function to be called at each node. LEVEL is the level of ROOT in the whole tree. */ static void -internal_function trecurse (const void *vroot, __action_fn_t action, int level) { const_node root = (const_node) vroot; @@ -725,7 +724,6 @@ weak_alias (__twalk, twalk) /* The standardized functions miss an important functionality: the tree cannot be removed easily. We provide a function to do this. */ static void -internal_function tdestroy_recurse (node root, __free_fn_t freefct) { if (LEFT(root) != NULL)