1
Description: fix FTBFS with clang instead of gcc
2
Author: Nicolas Sévelin-Radiguet <nicosr@free.fr>
3
Last-Update: 2014-04-05
8
guint ptr, start, end, entry, entries;
9
gchar *entryhash, *entryname, *entryext;
11
- if (libcache == NULL) return;
12
+ if (libcache == NULL) return 0;
14
/*Cache file must be terminated with value 0x00*/
15
if (libcache->mapping[libcache->mapsize-1] != 0x00) {
20
appdata = (mmgui_application_data_t)data;
22
- if (appdata == NULL) return;
23
+ if (appdata == NULL) return FALSE;
25
currenttime = time(NULL);
29
mmguiapp = (mmgui_application_t)data;
31
- if (mmguiapp == NULL) return;
32
+ if (mmguiapp == NULL) return FALSE;
34
if (mmguiapp->options->askforhide) {
38
mmguiapp = (mmgui_application_t)data;
40
- if (mmguiapp == NULL) return;
41
+ if (mmguiapp == NULL) return FALSE;
43
if (mmguicore_devices_get_current(mmguiapp->core) != NULL) {
44
unreadmessages = mmgui_smsdb_get_unread_messages(mmguicore_devices_get_sms_db(mmguiapp->core));
46
guint id, contacttype;
47
mmgui_contact_t contact;
49
- if (mmguiapp == NULL) return;
50
+ if (mmguiapp == NULL) return 0;
52
model = gtk_tree_view_get_model(GTK_TREE_VIEW(mmguiapp->window->contactstreeview));
53
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(mmguiapp->window->contactstreeview));
56
mmguiapp = (mmgui_application_t)data;
58
- if (mmguiapp == NULL) return;
59
- if (mmguiapp->core == NULL) return;
60
+ if (mmguiapp == NULL) return FALSE;
61
+ if (mmguiapp->core == NULL) return FALSE;
63
device = mmguicore_devices_get_current(mmguiapp->core);
67
mmguiapp = (mmgui_application_t)data;
69
- if (mmguiapp == NULL) return;
70
- if (mmguiapp->core == NULL) return;
71
+ if (mmguiapp == NULL) return FALSE;
72
+ if (mmguiapp->core == NULL) return FALSE;
74
device = mmguicore_devices_get_current(mmguiapp->core);
78
enum _mmgui_main_new_sms_dialog_result result;
80
- if (mmguiapp == NULL) return;
81
+ if (mmguiapp == NULL) return 0;
83
smsvalidflags = MMGUI_MAIN_NEW_SMS_VALIDATION_VALID;