From 46568b002dec9939d8505fbc6339ddb0c29a3046 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 9 Sep 2013 09:06:50 +0200 Subject: agetty: cleanup debug ifdefs Signed-off-by: Karel Zak --- term-utils/agetty.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'term-utils') 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) -- cgit v1.2.3-55-g7522