summaryrefslogtreecommitdiffstats
path: root/src/intrfn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-02-03 09:29:29 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-02-03 09:29:29 +0100
commit203df0e3a588f01ebfb60428eb1a5ab258a4969d (patch)
tree022c7facc406d0eea910638c7b41355964ee8549 /src/intrfn.c
parentc6e94c6adfe071f4510190069638d70d59675f42 (diff)
Fix some compilation warnings
Diffstat (limited to 'src/intrfn.c')
-rw-r--r--src/intrfn.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/intrfn.c b/src/intrfn.c
index 69983a3..0df480a 100644
--- a/src/intrfn.c
+++ b/src/intrfn.c
@@ -53,21 +53,16 @@
#ifdef HAVE_LIBGEN_H
#include <libgen.h>
#endif
-#ifdef HAVE_DIRENT_H
-#include <dirent.h>
-#endif
#include <errno.h>
#include "types.h"
#include "common.h"
#include "lang.h"
#include "intrf.h"
#include "intrfn.h"
-#include "fnctdsk.h"
#include "list.h"
#include "dir.h"
#include "log.h"
#include "hdaccess.h"
-#include "askloc.h"
extern const arch_fnct_t arch_i386;
extern const arch_fnct_t arch_gpt;
@@ -257,7 +252,7 @@ static int wmenuUpdate(WINDOW *window, const int yinfo, int y, int x, const stru
{
x += (lenName < itemLength?itemLength:lenName) + MENU_SPACING;
if( menuType & MENU_BUTTON ) x += 2;
- if( x > COLUMNS - lmargin - 12 )
+ if( x + lmargin + 12 > COLUMNS )
{
x = lmargin;
y ++ ;