Changeset 5bb5ee3 for protocols


Ignore:
Timestamp:
2015-12-01T02:54:23Z (8 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
398a139
Parents:
64b8c9f
Message:

purple: avoid warnings in the PURPLE_INPUT_* enum checks

Also turn them into asserts because that's what it really does.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/purple/purple.c

    r64b8c9f r5bb5ee3  
    14131413        char *dir;
    14141414
    1415         if (B_EV_IO_READ != PURPLE_INPUT_READ ||
    1416             B_EV_IO_WRITE != PURPLE_INPUT_WRITE) {
    1417                 /* FIXME FIXME FIXME FIXME FIXME :-) */
    1418                 exit(1);
    1419         }
     1415        g_assert((int) B_EV_IO_READ == (int) PURPLE_INPUT_READ);
     1416        g_assert((int) B_EV_IO_WRITE == (int) PURPLE_INPUT_WRITE);
    14201417
    14211418        dir = g_strdup_printf("%s/purple", global.conf->configdir);
Note: See TracChangeset for help on using the changeset viewer.