]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: cleanup debug ifdefs
authorKarel Zak <kzak@redhat.com>
Mon, 9 Sep 2013 07:06:50 +0000 (09:06 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Sep 2013 07:15:40 +0000 (09:15 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/agetty.c

index af1e520dba671cd485f95294fb3a092afb83d405..c23b91c14cbc4cb74f3a9d7aaa0457a179afac50 100644 (file)
@@ -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)