fnmatch: avoid compiler warning
authorEric Blake <eblake@redhat.com>
Wed, 18 May 2011 19:13:03 +0000 (13:13 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 18 May 2011 19:14:25 +0000 (13:14 -0600)
commit0c4be75eb0966bde4533bc111778e0ab494a93be
treec7d9fb4d744a2f54c11d76ca771f41fbe5c3435f
parent2c25c9ebe8db1415bfde25f0a451767332c8cf59
fnmatch: avoid compiler warning

Detected on Ubuntu 10.04, where the glibc fnmatch fix is not yet
present; also reproduced via:
$ gl_cv_func_fnmatch_posix=no CFLAGS=-Wall \
    ./gnulib-tool --with-tests --test fnmatch

In file included from gllib/fnmatch.c:172:0:
gllib/fnmatch_loop.c: In function ‘internal_fnmatch’:
gllib/fnmatch_loop.c:203:28: error: initialization discards qualifiers from pointer target type
gllib/fnmatch_loop.c:204:28: error: initialization discards qualifiers from pointer target type

* lib/fnmatch_loop.c (FCT): Use correct type.
Reported by Matthias Bolte.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/fnmatch_loop.c