getopt: synchronize from glibc
authorEric Blake <ebb9@byu.net>
Wed, 16 Dec 2009 19:03:14 +0000 (12:03 -0700)
committerEric Blake <ebb9@byu.net>
Tue, 22 Dec 2009 13:44:58 +0000 (06:44 -0700)
commit2494f34ba6b9f6cb9fa96aa2e0ea14739589cad7
tree679b5a93e6086b724df38c7ad9ffeb8293e8f110
parent3c8bb39bef81eb88a2aa9bdfd8af00ca151b86fd
getopt: synchronize from glibc

Make gnulib closer to glibc, to make tracking it easier to track
extent of pending patches against glibc.

* lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
parameter order.  Adjust all callers.
(_getopt_internal_r, main): Adjust quoting in error messages.
Drop considerations for outdated POSIX 1003.2 error message.
* lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
callers.
* lib/getopt_int.h (_getopt_internal_r): Adjust prototype.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/getopt.c
lib/getopt1.c
lib/getopt_int.h