diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-06-05 01:47:43 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-05-02 18:16:06 +0200 |
commit | 8ad248395c0fa0bccff6d0f9c43712018f0645f9 (patch) | |
tree | 6e39778d2b046c1b3c3a398bfd37bca7b76ac562 /ax25ipd/ax25ipd.c | |
parent | 1725ab720b56a94f895528a8aa89fe054ae9136d (diff) |
Use tabs for indentation, not spaces.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25ipd/ax25ipd.c')
-rw-r--r-- | ax25ipd/ax25ipd.c | 16 |
1 files changed, 8 insertions, 8 deletions
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 |