Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/err.h

    r63f8966 r47b7006  
    3636#define LIBC_ERR_H_
    3737
    38 #define errx(status, fmt, ...) { \
    39         printf((fmt), ##__VA_ARGS__); \
    40         _exit(status); \
    41 }
     38#include <stdio.h>
     39
     40#define errx(status, fmt, ...) \
     41        do { \
     42                printf((fmt), ##__VA_ARGS__); \
     43                exit(status); \
     44        } while (0)
    4245
    4346#endif
Note: See TracChangeset for help on using the changeset viewer.