Changeset 84239b1 in mainline for kernel/generic/src


Ignore:
Timestamp:
2018-03-11T19:39:11Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3d47c97
Parents:
850fd32
Message:

And there was much fixing.

Location:
kernel/generic/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/adt/avl.c

    r850fd32 r84239b1  
    412412                 * node.
    413413                 */
    414                 for (cur = node->lft; cur->rgt != NULL; cur = cur->rgt)
    415                         ;
     414                cur = node->lft;
     415                while (cur->rgt != NULL)
     416                        cur = cur->rgt;
    416417
    417418                if (cur != node->lft) {
     
    462463         * cut-off node up to the root.
    463464         */
    464         for (;;) {
     465        while (true) {
    465466                if (dir == LEFT) {
    466467                        /*
  • kernel/generic/src/console/kconsole.c

    r850fd32 r84239b1  
    264264                        }
    265265
    266                         for (max_match_len_tmp = 0;
    267                             (output[max_match_len_tmp] ==
     266                        max_match_len_tmp = 0;
     267                        while ((output[max_match_len_tmp] ==
    268268                            hint[max_match_len_tmp]) &&
    269                             (max_match_len_tmp < max_match_len); ++max_match_len_tmp);
     269                            (max_match_len_tmp < max_match_len))
     270                                ++max_match_len_tmp;
    270271
    271272                        max_match_len = max_match_len_tmp;
     
    373374                                beg = 0;
    374375                        } else {
    375                                 for (beg = position - 1;
    376                                     (beg > 0) && (!isspace(current[beg]));
    377                                     beg--);
     376                                beg = position - 1;
     377                                while ((beg > 0) && (!isspace(current[beg])))
     378                                    beg--;
    378379
    379380                                if (isspace(current[beg]))
Note: See TracChangeset for help on using the changeset viewer.