compat/regex.c: Fix warnings
commitad0b9993f9e21199cca77c0f04770e4013090d26
authorDmitry Kakurin <Dmitry.Kakurin@gmail.com>
Sat, 17 Nov 2007 19:32:08 +0000 (17 20:32 +0100)
committerSteffen Prohaska <prohaska@zib.de>
Wed, 21 Nov 2007 06:34:44 +0000 (21 07:34 +0100)
tree0f6cbbc0efc5ac0fa2352ac2ae44c3cefe7b379e
parent40c18e8ee6fcb5128719ee6e1b5aabee689da436
compat/regex.c: Fix warnings

In general, we don't add unnecessary braces.  But in this case
gcc warns about them.  So this commit adds a few braces.

The commit suppresses warnings about unitialized variables
by initializing them to NULL.

The change of bcmp_translate()'s parameter declaration is needed
to avoid warnings about "discards qualifiers from pointer target
type".

[sp: split original commit; more detailed commit message. ]

Signed-off-by: Dmitry Kakurin <Dmitry.Kakurin@gmail.com>
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
compat/regex.c