~moody/pokered

4c6a58ee21326ff8249914704ba6043b8b9af239 — Jacob Moody 1 year, 5 months ago 66f03cd
we have stdnoreturn.h now
1 files changed, 2 insertions(+), 1 deletions(-)

M tools/common.h
M tools/common.h => tools/common.h +2 -1
@@ 6,6 6,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdnoreturn.h>
#include <inttypes.h>
#include <string.h>
#include <errno.h>


@@ 22,7 23,7 @@

#define error_exit(...) exit((fprintf(stderr, PROGRAM_NAME ": " __VA_ARGS__), 1))

void usage_exit(int status) {
noreturn void usage_exit(int status) {
	fprintf(stderr, "Usage: " PROGRAM_NAME " " USAGE_OPTS "\n");
	exit(status);
}