Changes in uspace/app/tetris/tetris.c [0b2d369:8d2dd7f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tetris/tetris.c
r0b2d369 r8d2dd7f2 56 56 57 57 #include <sys/time.h> 58 #include <err.h> 58 59 #include <errno.h> 59 60 #include <stdio.h> … … 288 289 for (i = 0; i <= 5; i++) { 289 290 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."); 294 293 } 295 294 … … 443 442 void usage(void) 444 443 { 445 fprintf(stderr, "%s", copyright);446 444 fprintf(stderr, "usage: tetris [-ps] [-k keys]\n"); 447 445 exit(1);
Note:
See TracChangeset
for help on using the changeset viewer.