Warning fixes for FreeBSD 5.1.

This commit is contained in:
Pavel Roskin 2003-11-21 03:17:18 +00:00
parent bc89c5fb10
commit a128188ae1
5 changed files with 7 additions and 3 deletions

View File

@ -22,6 +22,7 @@
*/ */
#include <config.h> #include <config.h>
#include <signal.h> /* kill() */
#include "edit.h" #include "edit.h"
#include "editlock.h" #include "editlock.h"

View File

@ -32,6 +32,7 @@
# include <unistd.h> # include <unistd.h>
#endif #endif
#include <sys/stat.h> #include <sys/stat.h>
#include <signal.h> /* kill() */
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>

View File

@ -16,6 +16,7 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <config.h> #include <config.h>
#include <signal.h> /* kill() */
#include "global.h" #include "global.h"
#include "tty.h" #include "tty.h"
#include "win.h" #include "win.h"

View File

@ -24,6 +24,7 @@
#include <config.h> #include <config.h>
#include <glib.h> #include <glib.h>
#include <string.h> /* strlcpy() */
#include "glibcompat.h" #include "glibcompat.h"
#if GLIB_MAJOR_VERSION < 2 #if GLIB_MAJOR_VERSION < 2

View File

@ -91,7 +91,7 @@ vfs_op (int handle)
GSList *l; GSList *l;
struct vfs_openfile *h; 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); vfs_cmp_handle);
if (!l) if (!l)
return NULL; return NULL;
@ -108,7 +108,7 @@ vfs_info (int handle)
GSList *l; GSList *l;
struct vfs_openfile *h; 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); vfs_cmp_handle);
if (!l) if (!l)
return NULL; return NULL;
@ -124,7 +124,7 @@ vfs_free_handle (int handle)
{ {
GSList *l; GSList *l;
l = g_slist_find_custom (vfs_openfiles, (gconstpointer) handle, l = g_slist_find_custom (vfs_openfiles, (void *) handle,
vfs_cmp_handle); vfs_cmp_handle);
vfs_openfiles = g_slist_delete_link (vfs_openfiles, l); vfs_openfiles = g_slist_delete_link (vfs_openfiles, l);
} }