Changeset 1433ecda in mainline for uspace/app/bdsh/input.c


Ignore:
Timestamp:
2018-04-04T15:42:37Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

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

    r47b2d7e3 r1433ecda  
    101101        }
    102102
    103         if (tokens_length > 0 && tokens[tokens_length-1].type == TOKTYPE_SPACE) {
     103        if (tokens_length > 0 && tokens[tokens_length - 1].type == TOKTYPE_SPACE) {
    104104                tokens_length--;
    105105        }
     
    131131                /* Ignore the first three tokens (from, file, pipe) and set from */
    132132                redir_from = tokens[2].text;
    133                 cmd_token_start = pipe_pos[0]+1;
     133                cmd_token_start = pipe_pos[0] + 1;
    134134                processed_pipes++;
    135135        }
     
    139139            (pipe_pos[processed_pipes] == tokens_length - 4 ||
    140140            (pipe_pos[processed_pipes] == tokens_length - 5 &&
    141             tokens[tokens_length-4].type == TOKTYPE_SPACE )) &&
    142             str_cmp(tokens[tokens_length-3].text, "to") == 0) {
     141            tokens[tokens_length - 4].type == TOKTYPE_SPACE)) &&
     142            str_cmp(tokens[tokens_length - 3].text, "to") == 0) {
    143143                /* Ignore the last three tokens (pipe, to, file) and set to */
    144                 redir_to = tokens[tokens_length-1].text;
     144                redir_to = tokens[tokens_length - 1].text;
    145145                cmd_token_end = pipe_pos[processed_pipes];
    146146                processed_pipes++;
Note: See TracChangeset for help on using the changeset viewer.