*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
static const struct option options[] = {
{ "help", no_argument, 0, 'h' },
static const struct option options[] = {
{ "help", no_argument, 0, 'h' },
int main(int argc, char **argv) {
int n, err, aborted, logsyslog = !isatty(2);
int main(int argc, char **argv) {
int n, err, aborted, logsyslog = !isatty(2);
while((n = getopt_long(argc, argv, "hVc:dDSs", options, 0)) >= 0) {
switch(n) {
case 'h': help();
while((n = getopt_long(argc, argv, "hVc:dDSs", options, 0)) >= 0) {
switch(n) {
case 'h': help();
case 'c': configfile = optarg; break;
case 'd': debugging = 1; break;
case 'D': debugging = 0; break;
case 'c': configfile = optarg; break;
case 'd': debugging = 1; break;
case 'D': debugging = 0; break;