Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tetris/tetris.c

    rf538ef3 r8d2dd7f2  
    5656
    5757#include <sys/time.h>
     58#include <err.h>
    5859#include <errno.h>
    5960#include <stdio.h>
     
    288289        for (i = 0; i <= 5; i++) {
    289290                for (j = i + 1; j <= 5; j++) {
    290                         if (keys[i] == keys[j]) {
    291                                 fprintf(stderr, "duplicate command keys specified.");
    292                                 abort();
    293                         }
     291                        if (keys[i] == keys[j])
     292                                errx(1, "%s", "duplicate command keys specified.");
    294293                }
    295294               
Note: See TracChangeset for help on using the changeset viewer.