From 8ad248395c0fa0bccff6d0f9c43712018f0645f9 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Wed, 5 Jun 2013 01:47:43 +0200 Subject: Use tabs for indentation, not spaces. Signed-off-by: Ralf Baechle --- ax25ipd/ax25ipd.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ax25ipd/ax25ipd.c') diff --git a/ax25ipd/ax25ipd.c b/ax25ipd/ax25ipd.c index 4888c07..b1786f5 100644 --- a/ax25ipd/ax25ipd.c +++ b/ax25ipd/ax25ipd.c @@ -41,7 +41,7 @@ struct option options[] = { {"help", 0, NULL, 'h'}, {"configfile", 1, NULL, 'c'}, {"ttydevice", 1, NULL, 'd'}, - {"nofork", 0, NULL, 'f'}, + {"nofork", 0, NULL, 'f'}, {0, 0, 0, 0} }; @@ -75,8 +75,8 @@ int main(int argc, char **argv) strncpy(opt_ttydevice, optarg, sizeof(opt_ttydevice)-1); opt_ttydevice[sizeof(opt_ttydevice)-1] = 0; break; - case 'f': - opt_nofork = 1; + case 'f': + opt_nofork = 1; break; case 'h': opt_help = 1; @@ -116,8 +116,8 @@ int main(int argc, char **argv) (" --configfile FILE, -c FILE Set configuration file to FILE\n"); printf (" --ttydevice TTYDEV, -d TTYDEV Set device parameter to TTYDEV\n"); - printf - (" --nofork, -f Do not put daemon in background\n"); + printf + (" --nofork, -f Do not put daemon in background\n"); exit(0); } @@ -145,12 +145,12 @@ int main(int argc, char **argv) io_open(); /* if we get this far without error, let's fork off ! :-) */ - if (opt_nofork == 0) { + if (opt_nofork == 0) { if (!daemon_start(TRUE)) { - syslog(LOG_DAEMON | LOG_CRIT, "ax25ipd: cannot become a daemon\n"); + syslog(LOG_DAEMON | LOG_CRIT, "ax25ipd: cannot become a daemon\n"); return 1; } - } + } /* we need to close stdin, stdout, stderr: because otherwise * scripting like ttyname=$(ax25ipd | tail -1) does not work -- cgit v1.2.3