Changeset 76d0981d in mainline for uspace/app/bdsh/cmds


Ignore:
Timestamp:
2018-04-12T12:57:20Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3bacee1
Parents:
9c514be
git-author:
Jiri Svoboda <jiri@…> (2018-04-11 18:18:43)
git-committer:
Jiri Svoboda <jiri@…> (2018-04-12 12:57:20)
Message:

Use proper boolean constant in while loops.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/mkdir/mkdir.c

    r9c514be r76d0981d  
    2727 */
    2828
     29#include <stdbool.h>
    2930#include <stdio.h>
    3031#include <stdlib.h>
     
    106107                /* Create the parent directories as well. */
    107108                size_t off = 0;
    108                 while (1) {
     109                while (true) {
    109110                        size_t prev_off = off;
    110111                        wchar_t cur_char = str_decode(path, &off, STR_NO_LIMIT);
Note: See TracChangeset for help on using the changeset viewer.