From patchwork Fri Sep 12 11:12:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 388587 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 D561F1401AC for ; Fri, 12 Sep 2014 21:12:59 +1000 (EST) 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:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=BSpNj5gTftjbqL8WgMLfyS0o48px8 wK5vDr+SZOu5QvqumC+IXNHMjbjM9Yhv6a02n/o9fJ64fTK6KgxcDNMo5Z0BcoWD CcFST2qrI3hje7Nm1t3NKxQtJDJBotr3vzM7RqUzbak9aFhWnCzl3AsUYREiszxE cS5i7RnJVEUWM4= 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:from:to:subject:message-id:mime-version :content-type; s=default; bh=t9x9j58Jj+E74YE06KjxjY6zmZY=; b=M+o gNGwo7Pe6lfjWkEkQAab7QpYspKpUn13vnyR+Zsb0mw6aVIH+JJNWryqFOjHOS3o TgE997L5tnGTC18uUIOLOo+1PL6TOHo6S7oPX5W4J8cXu7rmveuCCdpuvQh0HvKB dTId2g8jjGpLOPJ13FDniD7wQqZTki78SG6KGFvg= Received: (qmail 5042 invoked by alias); 12 Sep 2014 11:12:54 -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 5033 invoked by uid 89); 12 Sep 2014 11:12:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Date: Fri, 12 Sep 2014 16:42:46 +0530 From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [PATCH 1/2] Fix typo in _REGEX_VERSION name Message-ID: <20140912111245.GA28267@spoyarek.pnq.redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.22.1-rc1 (2013-10-16) There is no _POSIX_REGEX_VERSION, so don't check for it. Instead check for what actually exists, which is _REGEX_VERSION. I found this when trying to make the getconf environment variables typo-proof. * sysdeps/posix/sysconf.c (__sysconf): Check for and return _REGEX_VERSION and not _POSIX_REGEX_VERSION. --- sysdeps/posix/sysconf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c index cd2fb5a..644f514 100644 --- a/sysdeps/posix/sysconf.c +++ b/sysdeps/posix/sysconf.c @@ -984,8 +984,8 @@ __sysconf (name) return -1; #endif case _SC_REGEX_VERSION: -#if _POSIX_REGEX_VERSION > 0 - return _POSIX_REGEX_VERSION; +#ifdef _REGEX_VERSION + return _REGEX_VERSION; #else return -1; #endif