diff options
author | Indent <please@skip.me> | 2015-02-19 02:47:20 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-02-20 19:50:54 -0300 |
commit | 5ebff60479fc7a9f7f50ac03b124c91d4e6ebe11 (patch) | |
tree | 9fc0d50cb1f4bc9768d9f00de94eafd876bb55b0 /protocols/bee_ft.c | |
parent | af359b4316f9d392c6b752495a1b2ed631576ed8 (diff) |
Reindent everything to K&R style with tabs
Used uncrustify, with the configuration file in ./doc/uncrustify.cfg
Commit author set to "Indent <please@skip.me>" so that it's easier to
skip while doing git blame.
Diffstat (limited to 'protocols/bee_ft.c')
-rw-r--r-- | protocols/bee_ft.c | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/protocols/bee_ft.c b/protocols/bee_ft.c index 71299e99..27fd4eac 100644 --- a/protocols/bee_ft.c +++ b/protocols/bee_ft.c @@ -25,42 +25,47 @@ #include "bitlbee.h" #include "ft.h" -file_transfer_t *imcb_file_send_start( struct im_connection *ic, char *handle, char *file_name, size_t file_size ) +file_transfer_t *imcb_file_send_start(struct im_connection *ic, char *handle, char *file_name, size_t file_size) { - bee_t *bee = ic->bee; - bee_user_t *bu = bee_user_by_handle( bee, ic, handle ); - - if( bee->ui->ft_in_start ) - return bee->ui->ft_in_start( bee, bu, file_name, file_size ); - else + bee_t *bee = ic->bee; + bee_user_t *bu = bee_user_by_handle(bee, ic, handle); + + if (bee->ui->ft_in_start) { + return bee->ui->ft_in_start(bee, bu, file_name, file_size); + } else { return NULL; + } } -gboolean imcb_file_recv_start( struct im_connection *ic, file_transfer_t *ft ) +gboolean imcb_file_recv_start(struct im_connection *ic, file_transfer_t *ft) { bee_t *bee = ic->bee; - - if( bee->ui->ft_out_start ) - return bee->ui->ft_out_start( ic, ft ); - else + + if (bee->ui->ft_out_start) { + return bee->ui->ft_out_start(ic, ft); + } else { return FALSE; + } } -void imcb_file_canceled( struct im_connection *ic, file_transfer_t *file, char *reason ) +void imcb_file_canceled(struct im_connection *ic, file_transfer_t *file, char *reason) { bee_t *bee = ic->bee; - - if( file->canceled ) - file->canceled( file, reason ); - - if( bee->ui->ft_close ) - bee->ui->ft_close( ic, file ); + + if (file->canceled) { + file->canceled(file, reason); + } + + if (bee->ui->ft_close) { + bee->ui->ft_close(ic, file); + } } -void imcb_file_finished( struct im_connection *ic, file_transfer_t *file ) +void imcb_file_finished(struct im_connection *ic, file_transfer_t *file) { bee_t *bee = ic->bee; - - if( bee->ui->ft_finished ) - bee->ui->ft_finished( ic, file ); + + if (bee->ui->ft_finished) { + bee->ui->ft_finished(ic, file); + } } |