version 1.105, 2011/08/31 16:25:00 |
version 1.105.2.1, 2012/04/17 00:09:53 |
Line 334 main(int argc, char *argv[]) |
|
Line 334 main(int argc, char *argv[]) |
|
UseNameService = 0; |
UseNameService = 0; |
break; |
break; |
case 'o': /* message format */ |
case 'o': /* message format */ |
if (!strncmp(optarg, "rfc3164", sizeof("rfc3164")-1)) |
#define EQ(a) (strncmp(optarg, # a, sizeof(# a) - 1) == 0) |
|
if (EQ(bsd) || EQ(rfc3264)) |
BSDOutputFormat = true; |
BSDOutputFormat = true; |
else if (!strncmp(optarg, "syslog", sizeof("syslog")-1)) |
else if (EQ(syslog) || EQ(rfc5424)) |
BSDOutputFormat = false; |
BSDOutputFormat = false; |
else |
else |
usage(); |
usage(); |