Changeset 76d0981d in mainline for uspace/lib


Ignore:
Timestamp:
2018-04-12T12:57:20Z (8 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
Files:
6 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}
  • uspace/lib/ext4/src/balloc.c

    r9c514be r76d0981d  
    3636
    3737#include <errno.h>
     38#include <stdbool.h>
    3839#include <stdint.h>
    3940#include "ext4/balloc.h"
     
    274275                ibmap = -1;
    275276
    276         while (1) {
     277        while (true) {
    277278                if (r == bbmap || r == ibmap)
    278279                        r++;
  • uspace/lib/hound/src/protocol.c

    r9c514be r76d0981d  
    3939#include <macros.h>
    4040#include <str.h>
     41#include <stdbool.h>
    4142#include <stdlib.h>
    4243#include <stdio.h>
     
    401402        }
    402403
    403         while (1) {
     404        while (true) {
    404405                ipc_call_t call;
    405406                cap_call_handle_t chandle = async_get_call(&call);
  • uspace/lib/pcut/src/preproc.c

    r9c514be r76d0981d  
    2727 */
    2828
     29#include <stdbool.h>
    2930#include <stdio.h>
    3031#include <stdlib.h>
     
    109110        (void) argv;
    110111
    111         while (1) {
     112        while (true) {
    112113                int current_char_denotes_identifier;
    113114
  • uspace/lib/pcut/src/report/report.c

    r9c514be r76d0981d  
    3838#include <string.h>
    3939#endif
     40#include <stdbool.h>
    4041#include <stdio.h>
    4142
     
    110111        }
    111112
    112         while (1) {
     113        while (true) {
    113114                size_t message_length;
    114115
Note: See TracChangeset for help on using the changeset viewer.