summaryrefslogtreecommitdiffstats
path: root/term-utils/agetty.c
diff options
context:
space:
mode:
authorKarel Zak2013-09-09 09:06:50 +0200
committerKarel Zak2013-09-09 09:15:40 +0200
commit46568b002dec9939d8505fbc6339ddb0c29a3046 (patch)
tree772cef1ee2812a9a2e23b2a5660520d55f01b120 /term-utils/agetty.c
parentlast: --fulltime and --time-format are mutually exclusive (diff)
downloadkernel-qcow2-util-linux-46568b002dec9939d8505fbc6339ddb0c29a3046.tar.gz
kernel-qcow2-util-linux-46568b002dec9939d8505fbc6339ddb0c29a3046.tar.xz
kernel-qcow2-util-linux-46568b002dec9939d8505fbc6339ddb0c29a3046.zip
agetty: cleanup debug ifdefs
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r--term-utils/agetty.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c
index af1e520db..c23b91c14 100644
--- a/term-utils/agetty.c
+++ b/term-utils/agetty.c
@@ -242,13 +242,13 @@ static void login_options_to_argv(char *argv[], int *argc, char *str, char *user
static char *fakehost;
#ifdef DEBUGGING
-#ifndef
-# define DEBUG_OUTPUT "/dev/ttyp0"
-#endif
-#define debug(s) do { fprintf(dbf,s); fflush(dbf); } while (0)
+# ifndef DEBUG_OUTPUT
+# define DEBUG_OUTPUT "/dev/ttyp0"
+# endif
+# define debug(s) do { fprintf(dbf,s); fflush(dbf); } while (0)
FILE *dbf;
#else
-#define debug(s) do { ; } while (0)
+# define debug(s) do { ; } while (0)
#endif
int main(int argc, char **argv)