From b66d2fec727d6987ad78d5c731a713a58008f3eb Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sat, 2 Jun 2001 01:01:30 +0000 Subject: [PATCH] * view.c [HAVE_X]: Define is_idle() to 1. Warning fix. --- src/ChangeLog | 2 ++ src/view.c | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 86ab891a2..2cea46737 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2001-06-01 Pavel Roskin + * view.c [HAVE_X]: Define is_idle() to 1. Warning fix. + * file.c (copy_file_file): Initialize src_uid, src_gid, src_mode and file_size to avoid a warning. diff --git a/src/view.c b/src/view.c index 11987f603..92042da14 100644 --- a/src/view.c +++ b/src/view.c @@ -95,6 +95,10 @@ int max_dirt_limit = 10; #endif +#ifdef HAVE_X +#define is_idle() 1 +#endif + extern Hook *idle_hook; /* Our callback */ @@ -1475,12 +1479,13 @@ search (WView *view, char *text, int (*search)(WView *, char *, char *, int)) char *s = NULL; /* The line we read from the view buffer */ long p, beginning; int found_len, search_start; - Dlg_head *d = 0; int search_status; #ifdef HAVE_GNOME char *msg; int abort; GtkWidget *gd; +#else + Dlg_head *d = 0; #endif /* Used to keep track of where the line starts, when looking forward */