Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a02aa5c in mainline for uspace/app/bdsh/input.c


Ignore:
Timestamp:
2018-11-30T06:56:05Z (3 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Branches:
lfn, master
Children:
966f753
Parents:
94619b9
Message:

correcting formatting according to ccheck.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/input.c

    r94619b9 ra02aa5c  
    173173        }
    174174
    175 
    176 
    177175        /* test if the passed cmd is an alias */
    178         odlink_t* alias_link = odict_find_eq(&alias_dict, (void*)cmd[0], NULL);
     176        odlink_t *alias_link = odict_find_eq(&alias_dict, (void *)cmd[0], NULL);
    179177        if (alias_link != NULL) {
    180                 alias_t* data = odict_get_instance(alias_link, alias_t, odict);
    181                 char* oldLine = usr->line;
    182                
     178                alias_t *data = odict_get_instance(alias_link, alias_t, odict);
     179                char *oldLine = usr->line;
    183180
    184181                const size_t input_length = str_size(usr->line) - str_size(cmd[0]) + str_size(data->value) + 1;
    185                 usr->line = (char*)malloc(input_length * sizeof(char));
     182                usr->line = (char *)malloc(input_length * sizeof(char));
    186183                usr->line[0] = '\0';
    187184
     
    208205        }
    209206
    210 
    211207        iostate_t new_iostate = {
    212208                .stdin = stdin,
Note: See TracChangeset for help on using the changeset viewer.