Changeset b48d046 in mainline


Ignore:
Timestamp:
2011-08-21T13:16:40Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f90eb75
Parents:
25c1b2c
Message:

cstyle
(no change in functionality)

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/Makefile

    r25c1b2c rb48d046  
    3131LIBS = $(LIBBLOCK_PREFIX)/libblock.a $(LIBCLUI_PREFIX)/libclui.a \
    3232        $(LIBFMTUTIL_PREFIX)/libfmtutil.a
    33 EXTRA_CFLAGS = -I$(LIBBLOCK_PREFIX) -I$(LIBCLUI_PREFIX) -I$(LIBFMTUTIL_PREFIX)\
    34         -I. -Icmds/ -Icmds/builtins -Icmds/modules
     33EXTRA_CFLAGS = -I$(LIBBLOCK_PREFIX) -I$(LIBCLUI_PREFIX) \
     34        -I$(LIBFMTUTIL_PREFIX) -I. -Icmds/ -Icmds/builtins -Icmds/modules
    3535BINARY = bdsh
    3636
  • uspace/app/bdsh/input.c

    r25c1b2c rb48d046  
    6767int process_input(cliuser_t *usr)
    6868{
    69         char *cmd[WORD_MAX];
    7069        token_t *tokens = calloc(WORD_MAX, sizeof(token_t));
    7170        if (tokens == NULL)
    7271                return ENOMEM;
     72       
     73        char *cmd[WORD_MAX];
    7374        int rc = 0;
    7475        tokenizer_t tok;
     
    7879        char *redir_to = NULL;
    7980
    80         if (NULL == usr->line) {
     81        if (usr->line == NULL) {
    8182                free(tokens);
    8283                return CL_EFAIL;
  • uspace/lib/c/generic/str.c

    r25c1b2c rb48d046  
    731731{
    732732        size_t len = str_length(str);
    733         wchar_t *wstr = calloc(len+1, sizeof(wchar_t));
    734         if (wstr == NULL) {
    735                 return NULL;
    736         }
    737         str_to_wstr(wstr, len+1, str);
     733       
     734        wchar_t *wstr = calloc(len+1, sizeof(wchar_t));
     735        if (wstr == NULL)
     736                return NULL;
     737       
     738        str_to_wstr(wstr, len + 1, str);
    738739        return wstr;
    739740}
Note: See TracChangeset for help on using the changeset viewer.