96 static void usage(
char *progname)
98 msg_fatal(
"usage: %s [-v] pattern_list address", progname);
101 int main(
int argc,
char **argv)
109 while ((ch =
GETOPT(argc, argv,
"v")) > 0) {
118 if (argc != optind + 2)
124 addr = argv[optind + 1];
125 if (strcmp(addr,
"-") == 0) {
131 "YES" : list->error == 0 ?
"NO" :
"ERROR");
136 "YES" : list->error == 0 ?
"NO" :
"ERROR");
#define MATCH_FLAG_RETURN
#define addr_match_list_match(l, a)
int vstring_get_nonl(VSTRING *vp, VSTREAM *fp)
int main(int argc, char **argv)
#define MATCH_FLAG_PARENT
VSTREAM * vstream_printf(const char *fmt,...)
#define addr_match_list_free
VSTRING * vstring_alloc(ssize_t len)
NORETURN msg_fatal(const char *fmt,...)
int vstream_fflush(VSTREAM *stream)
#define GETOPT(argc, argv, str)
VSTRING * vstring_free(VSTRING *vp)
void msg_vstream_init(const char *name, VSTREAM *vp)
#define addr_match_list_init(o, f, p)