Skip to content

Commit cf81cfb

Browse files
committed
Replace bool for int
1 parent 3f13262 commit cf81cfb

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/capture_tls.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,19 +170,19 @@ tls_check_keyfile(const char *keyfile)
170170
OpenSSL_add_all_algorithms();
171171

172172
if (access(capture_get_keyfile(), R_OK) != 0)
173-
return false;
173+
return 0;
174174

175175
if (!(ssl_ctx = SSL_CTX_new(SSLv23_server_method())))
176-
return false;
176+
return 0;
177177

178178
SSL_CTX_use_PrivateKey_file(ssl_ctx, capture_get_keyfile(), SSL_FILETYPE_PEM);
179179
if (!(ssl = SSL_new(ssl_ctx)))
180-
return false;
180+
return 0;
181181

182182
if (!SSL_get_privatekey(ssl))
183-
return false;
183+
return 0;
184184

185-
return true;
185+
return 1;
186186
}
187187

188188
int

src/capture_tls.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ tls_connection_destroy(struct SSLConnection *conn);
309309
* This can be used to check if a file contains valid RSA data
310310
*
311311
* @param keyfile Absolute path the keyfile
312-
* @return true if file contains RSA private info, false otherwise
312+
* @return 1 if file contains RSA private info, 0 otherwise
313313
*/
314314
int
315315
tls_check_keyfile(const char *keyfile);

src/ui_call_flow.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ call_flow_draw(PANEL *panel)
188188

189189
// Draw the scrollbar
190190
draw_vscrollbar(info->flow_win, call_group_msg_number(info->group, info->first_msg) * 2,
191-
call_group_msg_count(info->group) * 2, true);
191+
call_group_msg_count(info->group) * 2, 1);
192192

193193
// Redraw flow win
194194
wnoutrefresh(info->flow_win);

src/ui_call_list.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ call_list_create()
102102
info->form = new_form(info->fields);
103103
set_form_sub(info->form, win);
104104
// Form starts inactive
105-
call_list_form_activate(panel, false);
105+
call_list_form_activate(panel, 0);
106106

107107
// Calculate available printable area
108108
info->list_win = subwin(win, height - 5, width, 4, 0);
@@ -122,7 +122,7 @@ call_list_create()
122122
// Set defualt filter text if configured
123123
if (get_option_value("cl.filter")) {
124124
set_field_buffer(info->fields[FLD_LIST_FILTER], 0, get_option_value("cl.filter"));
125-
call_list_form_activate(panel, false);
125+
call_list_form_activate(panel, 0);
126126
}
127127

128128
// Return the created panel
@@ -294,7 +294,7 @@ call_list_draw(PANEL *panel)
294294
}
295295

296296
// Draw scrollbar to the right
297-
draw_vscrollbar(win, info->first_line, dispcallcnt, true);
297+
draw_vscrollbar(win, info->first_line, dispcallcnt, 1);
298298
wnoutrefresh(info->list_win);
299299

300300
return 0;
@@ -408,7 +408,7 @@ call_list_handle_key(PANEL *panel, int key)
408408
case 9 /*KEY_TAB*/:
409409
case KEY_F(3):
410410
// Activate Form
411-
call_list_form_activate(panel, true);
411+
call_list_form_activate(panel, 1);
412412
break;
413413
case KEY_DOWN:
414414
// Check if there is a call below us
@@ -578,7 +578,7 @@ call_list_handle_form_key(PANEL *panel, int key)
578578
case KEY_DOWN:
579579
case KEY_UP:
580580
// Activate list
581-
call_list_form_activate(panel, false);
581+
call_list_form_activate(panel, 0);
582582
break;
583583
case KEY_RIGHT:
584584
form_driver(info->form, REQ_RIGHT_CHAR);

0 commit comments

Comments
 (0)