From a128188ae11bbda57cef7de92cec56a4db7fc67d Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Fri, 21 Nov 2003 03:17:18 +0000 Subject: [PATCH] Warning fixes for FreeBSD 5.1. --- edit/editlock.c | 1 + src/background.c | 1 + src/execute.c | 1 + src/glibcompat.c | 1 + vfs/vfs.c | 6 +++--- 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/edit/editlock.c b/edit/editlock.c index 824937536..48d57fc73 100644 --- a/edit/editlock.c +++ b/edit/editlock.c @@ -22,6 +22,7 @@ */ #include +#include /* kill() */ #include "edit.h" #include "editlock.h" diff --git a/src/background.c b/src/background.c index 1a8be84b1..9aff2b49d 100644 --- a/src/background.c +++ b/src/background.c @@ -32,6 +32,7 @@ # include #endif #include +#include /* kill() */ #include #include diff --git a/src/execute.c b/src/execute.c index 8479e30a0..83f656b44 100644 --- a/src/execute.c +++ b/src/execute.c @@ -16,6 +16,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include +#include /* kill() */ #include "global.h" #include "tty.h" #include "win.h" diff --git a/src/glibcompat.c b/src/glibcompat.c index 80f2b9927..4fff36192 100644 --- a/src/glibcompat.c +++ b/src/glibcompat.c @@ -24,6 +24,7 @@ #include #include +#include /* strlcpy() */ #include "glibcompat.h" #if GLIB_MAJOR_VERSION < 2 diff --git a/vfs/vfs.c b/vfs/vfs.c index 1f9cdbc9e..c2c94ed82 100644 --- a/vfs/vfs.c +++ b/vfs/vfs.c @@ -91,7 +91,7 @@ vfs_op (int handle) GSList *l; struct vfs_openfile *h; - l = g_slist_find_custom (vfs_openfiles, (gconstpointer) handle, + l = g_slist_find_custom (vfs_openfiles, (void *) handle, vfs_cmp_handle); if (!l) return NULL; @@ -108,7 +108,7 @@ vfs_info (int handle) GSList *l; struct vfs_openfile *h; - l = g_slist_find_custom (vfs_openfiles, (gconstpointer) handle, + l = g_slist_find_custom (vfs_openfiles, (void *) handle, vfs_cmp_handle); if (!l) return NULL; @@ -124,7 +124,7 @@ vfs_free_handle (int handle) { GSList *l; - l = g_slist_find_custom (vfs_openfiles, (gconstpointer) handle, + l = g_slist_find_custom (vfs_openfiles, (void *) handle, vfs_cmp_handle); vfs_openfiles = g_slist_delete_link (vfs_openfiles, l); }