summaryrefslogtreecommitdiffstats
path: root/src/tanalyse.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-01-14 22:13:47 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-01-14 22:13:47 +0100
commit1650fe5b8b6cea638c280df13605aea816718a00 (patch)
treefed11bd9361236aba47157d859607c109db05814 /src/tanalyse.c
parent56e1c29b2c0614b0b3230946d72e1eaf37618bcc (diff)
Split ncurses text interface from functions
Diffstat (limited to 'src/tanalyse.c')
-rw-r--r--src/tanalyse.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/tanalyse.c b/src/tanalyse.c
index 0b0743e..1de4a44 100644
--- a/src/tanalyse.c
+++ b/src/tanalyse.c
@@ -2,7 +2,7 @@
File: tanalyse.c
- Copyright (C) 2008 Christophe GRENIER <grenier@cgsecurity.org>
+ Copyright (C) 2009 Christophe GRENIER <grenier@cgsecurity.org>
This software is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -23,6 +23,7 @@
#include <config.h>
#endif
+#include <stdio.h>
#ifdef HAVE_STRING_H
#include <string.h>
#endif
@@ -30,15 +31,13 @@
#include "common.h"
#include "lang.h"
#include "intrf.h"
-#ifdef HAVE_NCURSES
#include "intrfn.h"
-#else
-#include <stdio.h>
-#endif
#include "savehdr.h"
#include "log.h"
#include "tanalyse.h"
+extern const arch_fnct_t arch_none;
+
static list_part_t *interface_analyse_ncurses(disk_t *disk_car, const int verbose, const int saveheader, char**current_cmd)
{
list_part_t *list_part;
@@ -91,7 +90,7 @@ static list_part_t *interface_analyse_ncurses(disk_t *disk_car, const int verbos
log_flush();
#ifdef HAVE_NCURSES
command=screen_buffer_display(stdscr,
- (list_part!=NULL && disk_car->arch->add_partition!=NULL?"QB":"Q"),
+ (list_part!=NULL && disk_car->arch != &arch_none?"QB":"Q"),
menuAnalyse);
#endif
}