Changeset 76d0981d in mainline for uspace/lib/c


Ignore:
Timestamp:
2018-04-12T12:57:20Z (7 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.

Location:
uspace/lib/c/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/libc.c

    r9c514be r76d0981d  
    4343#include <errno.h>
    4444#include <libc.h>
     45#include <stdbool.h>
    4546#include <stdlib.h>
    4647#include <tls.h>
     
    138139
    139140        /* Unreachable */
    140         while (1)
     141        while (true)
    141142                ;
    142143}
     
    147148
    148149        /* Unreachable */
    149         while (1)
     150        while (true)
    150151                ;
    151152}
  • uspace/lib/c/generic/thread.c

    r9c514be r76d0981d  
    3535#include <thread.h>
    3636#include <libc.h>
     37#include <stdbool.h>
    3738#include <stdlib.h>
    3839#include <libarch/faddr.h>
     
    157158
    158159        /* Unreachable */
    159         while (1)
     160        while (true)
    160161                ;
    161162}
Note: See TracChangeset for help on using the changeset viewer.