Ignore:
Timestamp:
2016-08-28T11:49:38Z (8 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3f4c537a
Parents:
db4c43e1
Message:

cstyle (no change in functionality)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/kconsole.c

    rdb4c43e1 re98f1c3e  
    166166const char *cmdtab_enum(const char *name, const char **h, void **ctx)
    167167{
    168         link_t **startpos = (link_t**)ctx;
     168        link_t **startpos = (link_t**) ctx;
    169169        size_t namelen = str_length(name);
    170170       
     
    183183                if (str_lcmp(curname, name, namelen) == 0) {
    184184                        *startpos = (*startpos)->next;
    185                         if (h) {
     185                        if (h)
    186186                                *h = hlp->description;
    187                         }
     187                       
    188188                        spinlock_unlock(&cmd_lock);
    189189                        return (curname + str_lsize(curname, namelen));
     
    249249                       
    250250                        if (continue_showing_hints) {
    251                                
    252251                                if (help)
    253252                                        printf("%s%s (%s)\n", name, hint, help);
     
    292291        while (isspace(cmdline[start]))
    293292                start++;
     293       
    294294        end = start + 1;
     295       
    295296        while (!isspace(cmdline[end]))
    296297                end++;
     
    374375                                for (beg = position - 1;
    375376                                    (beg > 0) && (!isspace(current[beg]));
    376                                     beg--) {
    377                                         ;
    378                                 }
     377                                    beg--);
    379378                               
    380379                                if (isspace(current[beg]))
     
    395394                                        sp = false;
    396395                        }
     396                       
    397397                        if (narg && isspace(current[0]))
    398398                                narg--;
    399 
     399                       
    400400                        int found;
    401401                        if (narg == 0) {
Note: See TracChangeset for help on using the changeset viewer.