Changeset f538ef3 in mainline


Ignore:
Timestamp:
2017-09-23T11:41:08Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
75c3830
Parents:
bd1745f
Message:

No need to have a (broken) BSD errx() function in libc.

Location:
uspace
Files:
1 deleted
4 edited

Legend:

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

    rbd1745f rf538ef3  
    6565#include <vfs/vfs.h>
    6666#include <stdlib.h>
    67 #include <err.h>
    6867#include <time.h>
    6968#include "screen.h"
  • uspace/app/tetris/screen.c

    rbd1745f rf538ef3  
    5454 */
    5555
    56 #include <err.h>
    5756#include <stdio.h>
    5857#include <stdlib.h>
     
    198197                scr_end();
    199198       
    200         errx(1, "aborting: %s", why);
     199        fprintf(stderr, "aborting: %s", why);
     200        abort();
    201201}
    202202
  • uspace/app/tetris/tetris.c

    rbd1745f rf538ef3  
    5656
    5757#include <sys/time.h>
    58 #include <err.h>
    5958#include <errno.h>
    6059#include <stdio.h>
     
    289288        for (i = 0; i <= 5; i++) {
    290289                for (j = i + 1; j <= 5; j++) {
    291                         if (keys[i] == keys[j])
    292                                 errx(1, "%s", "duplicate command keys specified.");
     290                        if (keys[i] == keys[j]) {
     291                                fprintf(stderr, "duplicate command keys specified.");
     292                                abort();
     293                        }
    293294                }
    294295               
  • uspace/lib/c/generic/getopt.c

    rbd1745f rf538ef3  
    3434#include <assert.h>
    3535#include <stdarg.h>
     36#include <stdio.h>
    3637#include <stdlib.h>
    3738#include <stddef.h>
    38 #include <err.h>
    3939#include <errno.h>
    4040#include <getopt.h>
Note: See TracChangeset for help on using the changeset viewer.