summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/message.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-10-21 20:23:03 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:11:05 +0200
commitf3ed99ca27594bddd047fd8606294e526148170b (patch)
tree339d903b1b42227277545945db02c6cbb9c6b48b /gettext-tools/src/message.c
parent5130a10155d135a63438c8b2b3e9ce4d925dc85b (diff)
downloadexternal_gettext-f3ed99ca27594bddd047fd8606294e526148170b.zip
external_gettext-f3ed99ca27594bddd047fd8606294e526148170b.tar.gz
external_gettext-f3ed99ca27594bddd047fd8606294e526148170b.tar.bz2
Avoid a gcc warning related to -fstrict-aliasing.
Diffstat (limited to 'gettext-tools/src/message.c')
-rw-r--r--gettext-tools/src/message.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gettext-tools/src/message.c b/gettext-tools/src/message.c
index 4ed1309..c82ed41 100644
--- a/gettext-tools/src/message.c
+++ b/gettext-tools/src/message.c
@@ -331,12 +331,12 @@ message_list_search (message_list_ty *mlp, const char *msgid)
{
if (mlp->use_hashtable)
{
- message_ty *mp;
+ void *htable_value;
- if (find_entry (&mlp->htable, msgid, strlen (msgid) + 1, (void **) &mp))
+ if (find_entry (&mlp->htable, msgid, strlen (msgid) + 1, &htable_value))
return NULL;
else
- return mp;
+ return (message_ty *) htable_value;
}
else
{