Code

options.c: rewrite two #ifndefs as one #if
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Mon, 14 Nov 2011 05:49:52 +0000 (06:49 +0100)
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>
Mon, 14 Nov 2011 21:26:02 +0000 (22:26 +0100)
src/options.c

index 322b66d81622f52009d084b42fefeb6a58c7078b..f7044ccbe24ddd9645b77a2e8f66f61c75291b03 100644 (file)
@@ -264,14 +264,12 @@ handle_option(int c, const char *arg)
                g_free(options.key_file);
                options.key_file = g_strdup(arg);
                break;
-#ifndef NDEBUG
-#ifndef NCMPC_MINI
+#if !defined(NDEBUG) && !defined(NCMPC_MINI)
        case 'K': /* --dump-keys */
                read_configuration();
                write_key_bindings(stdout, KEYDEF_WRITE_ALL | KEYDEF_COMMENT_ALL);
                exit(EXIT_SUCCESS);
                break;
-#endif
 #endif
        default:
                fprintf(stderr,"Unknown Option %c = %s\n", c, arg);