Changeset 76d0981d in mainline for uspace/app/tetris/tetris.c


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/tetris/tetris.c

    r9c514be r76d0981d  
    5757#include <sys/time.h>
    5858#include <errno.h>
     59#include <stdbool.h>
    5960#include <stdio.h>
    6061#include <stdlib.h>
     
    200201{
    201202        tetris_menu_draw(*level);
    202         while (1) {
     203        while (true) {
    203204                int i = getchar();
    204205
     
    327328                scr_msg(key_msg, 1);
    328329
    329                 while (1) {
     330                while (true) {
    330331                        place(curshape, pos, 1);
    331332                        scr_update();
Note: See TracChangeset for help on using the changeset viewer.