Skip to content

Commit

Permalink
Fix typo in macro names in sysconf.c
Browse files Browse the repository at this point in the history
Spell _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
Found when trying to make the getconf environment variables
typo-proof.

	* sysdeps/posix/sysconf.c (__sysconf): Spell
	_POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
  • Loading branch information
Siddhesh Poyarekar committed Sep 12, 2014
1 parent ba7b4d2 commit 920238e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2014-09-12 Siddhesh Poyarekar <siddhesh@redhat.com>

* sysdeps/posix/sysconf.c (__sysconf): Spell
_POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.

2014-08-12 Florian Weimer <fweimer@redhat.com>

* iconv/gconv_open.c (__gconv_open): Remove transliteration module
Expand Down
4 changes: 2 additions & 2 deletions sysdeps/posix/sysconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -886,13 +886,13 @@ __sysconf (name)
return -1;
#endif
case _SC_DEVICE_SPECIFIC:
#if _POSIX_DEVICE_SPCIFIC > 0
#if _POSIX_DEVICE_SPECIFIC > 0
return _POSIX_DEVICE_SPECIFIC;
#else
return -1;
#endif
case _SC_DEVICE_SPECIFIC_R:
#if _POSIX_DEVICE_SPCIFIC_R > 0
#if _POSIX_DEVICE_SPECIFIC_R > 0
return _POSIX_DEVICE_SPECIFIC_R;
#else
return -1;
Expand Down

0 comments on commit 920238e

Please sign in to comment.