diff options
author | dequis <dx@dxzone.com.ar> | 2015-11-30 23:54:23 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-11-30 23:54:23 -0300 |
commit | 5bb5ee39242019d2414860f6122ac95a39ea4d30 (patch) | |
tree | 9cb8b32c3b0994f791c7edf3854c7e0c3cd04629 | |
parent | 64b8c9f802b16ada4645216be67a18f15dbe790c (diff) |
purple: avoid warnings in the PURPLE_INPUT_* enum checks
Also turn them into asserts because that's what it really does.
-rw-r--r-- | protocols/purple/purple.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c index 99f8865b..911edaea 100644 --- a/protocols/purple/purple.c +++ b/protocols/purple/purple.c @@ -1412,11 +1412,8 @@ void purple_initmodule() GString *help; char *dir; - if (B_EV_IO_READ != PURPLE_INPUT_READ || - B_EV_IO_WRITE != PURPLE_INPUT_WRITE) { - /* FIXME FIXME FIXME FIXME FIXME :-) */ - exit(1); - } + g_assert((int) B_EV_IO_READ == (int) PURPLE_INPUT_READ); + g_assert((int) B_EV_IO_WRITE == (int) PURPLE_INPUT_WRITE); dir = g_strdup_printf("%s/purple", global.conf->configdir); purple_util_set_user_dir(dir); |