aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
blob: f4e1dad0225a776f48b358d0a24466d204a4cb3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* See LICENSE file for copyright and license details. */
#include <libcontacts.h>
#include <libsimple.h>
#include <libsimple-arg.h>


#ifdef MULTICALL_BINARY
# undef NUSAGE
# define NUSAGE(STATUS, SYNOPSIS)\
	static _LIBSIMPLE_NORETURN void\
	usage(void)\
	{\
		const char *syn = SYNOPSIS ? SYNOPSIS : "";\
		fprintf(stderr, "usage: %s%s%s\n", argv0, *syn ? " " : "", syn);\
		exit(STATUS);\
	}\
	extern char *argv0
#endif