[PATCH 1/2] Fix typo in _REGEX_VERSION name

Siddhesh Poyarekar siddhesh@redhat.com
Fri Sep 12 11:12:00 GMT 2014


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
-- 
1.9.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140912/5eadf4e4/attachment.sig>


More information about the Libc-alpha mailing list