diff options
author | Karel Zak <kzak@redhat.com> | 2013-09-09 09:06:50 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2013-09-09 09:15:40 +0200 |
commit | 46568b002dec9939d8505fbc6339ddb0c29a3046 (patch) | |
tree | 772cef1ee2812a9a2e23b2a5660520d55f01b120 /term-utils | |
parent | 2ea747ebf1ed89cd1d5a704677e72c2d008eb6f1 (diff) | |
download | util-linux-46568b002dec9939d8505fbc6339ddb0c29a3046.tar.gz |
agetty: cleanup debug ifdefs
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils')
-rw-r--r-- | term-utils/agetty.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c index af1e520d..c23b91c1 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) |