From: Karel Zak Date: Mon, 9 Sep 2013 07:06:50 +0000 (+0200) Subject: agetty: cleanup debug ifdefs X-Git-Tag: v2.24-rc1~297 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=46568b002dec9939d8505fbc6339ddb0c29a3046;p=thirdparty%2Futil-linux.git agetty: cleanup debug ifdefs Signed-off-by: Karel Zak --- diff --git a/term-utils/agetty.c b/term-utils/agetty.c index af1e520dba..c23b91c14c 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)