summaryrefslogtreecommitdiffstats
path: root/src/intrf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-08-05 09:37:25 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-08-05 09:37:25 +0200
commit5a12cb2d50b1f26b3cd3df3fdf99c3160d69958b (patch)
treefa61440edea21dd318d2b285de0221e6f6df6bdd /src/intrf.c
parent594016c8562bdfabb8c9f4b6d82444f56b602130 (diff)
Fix some compilation warning when ncurses isn't used
Diffstat (limited to 'src/intrf.c')
-rw-r--r--src/intrf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intrf.c b/src/intrf.c
index de352fe..2f6b2e1 100644
--- a/src/intrf.c
+++ b/src/intrf.c
@@ -85,7 +85,9 @@ extern const char *monstr[];
static char intr_buffer_screen[MAX_LINES][LINE_LENGTH+1];
static int intr_nbr_line=0;
+#ifdef HAVE_NCURSES
static void set_parent_directory(char *dst_directory);
+#endif
int screen_buffer_add(const char *_format, ...)
{
@@ -244,6 +246,7 @@ const char *aff_part_aux(const unsigned int newline, const disk_t *disk_car, con
#define PATH_DRIVE_LENGTH 9
#endif
+#ifdef HAVE_NCURSES
static void set_parent_directory(char *dst_directory)
{
int i;
@@ -271,6 +274,7 @@ static void set_parent_directory(char *dst_directory)
dst_directory[1]='\0';
#endif
}
+#endif
static inline char *td_getcwd(char *buf, unsigned long size)
{