Changeset 5ebff60 for protocols/bee_ft.c


Ignore:
Timestamp:
2015-02-20T22:50:54Z (5 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
0b9daac, 3d45471, 7733b8c
Parents:
af359b4
git-author:
Indent <please@…> (19-02-15 05:47:20)
git-committer:
dequis <dx@…> (20-02-15 22:50:54)
Message:

Reindent everything to K&R style with tabs

Used uncrustify, with the configuration file in ./doc/uncrustify.cfg

Commit author set to "Indent <please@…>" so that it's easier to
skip while doing git blame.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/bee_ft.c

    raf359b4 r5ebff60  
    2626#include "ft.h"
    2727
    28 file_transfer_t *imcb_file_send_start( struct im_connection *ic, char *handle, char *file_name, size_t file_size )
     28file_transfer_t *imcb_file_send_start(struct im_connection *ic, char *handle, char *file_name, size_t file_size)
    2929{
    30         bee_t *bee = ic->bee; 
    31         bee_user_t *bu = bee_user_by_handle( bee, ic, handle );
    32        
    33         if( bee->ui->ft_in_start )
    34                 return bee->ui->ft_in_start( bee, bu, file_name, file_size );
    35         else
     30        bee_t *bee = ic->bee;
     31        bee_user_t *bu = bee_user_by_handle(bee, ic, handle);
     32
     33        if (bee->ui->ft_in_start) {
     34                return bee->ui->ft_in_start(bee, bu, file_name, file_size);
     35        } else {
    3636                return NULL;
     37        }
    3738}
    3839
    39 gboolean imcb_file_recv_start( struct im_connection *ic, file_transfer_t *ft )
     40gboolean imcb_file_recv_start(struct im_connection *ic, file_transfer_t *ft)
    4041{
    4142        bee_t *bee = ic->bee;
    42        
    43         if( bee->ui->ft_out_start )
    44                 return bee->ui->ft_out_start( ic, ft );
    45         else
     43
     44        if (bee->ui->ft_out_start) {
     45                return bee->ui->ft_out_start(ic, ft);
     46        } else {
    4647                return FALSE;
     48        }
    4749}
    4850
    49 void imcb_file_canceled( struct im_connection *ic, file_transfer_t *file, char *reason )
     51void imcb_file_canceled(struct im_connection *ic, file_transfer_t *file, char *reason)
    5052{
    5153        bee_t *bee = ic->bee;
    52        
    53         if( file->canceled )
    54                 file->canceled( file, reason );
    55        
    56         if( bee->ui->ft_close )
    57                 bee->ui->ft_close( ic, file );
     54
     55        if (file->canceled) {
     56                file->canceled(file, reason);
     57        }
     58
     59        if (bee->ui->ft_close) {
     60                bee->ui->ft_close(ic, file);
     61        }
    5862}
    5963
    60 void imcb_file_finished( struct im_connection *ic, file_transfer_t *file )
     64void imcb_file_finished(struct im_connection *ic, file_transfer_t *file)
    6165{
    6266        bee_t *bee = ic->bee;
    63        
    64         if( bee->ui->ft_finished )
    65                 bee->ui->ft_finished( ic, file );
     67
     68        if (bee->ui->ft_finished) {
     69                bee->ui->ft_finished(ic, file);
     70        }
    6671}
Note: See TracChangeset for help on using the changeset viewer.