mirror of https://github.com/MidnightCommander/mc
Warning fixes for FreeBSD 5.1.
This commit is contained in:
parent
bc89c5fb10
commit
a128188ae1
|
@ -22,6 +22,7 @@
|
|||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <signal.h> /* kill() */
|
||||
#include "edit.h"
|
||||
#include "editlock.h"
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
# include <unistd.h>
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
#include <signal.h> /* kill() */
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <config.h>
|
||||
#include <signal.h> /* kill() */
|
||||
#include "global.h"
|
||||
#include "tty.h"
|
||||
#include "win.h"
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include <config.h>
|
||||
#include <glib.h>
|
||||
#include <string.h> /* strlcpy() */
|
||||
#include "glibcompat.h"
|
||||
|
||||
#if GLIB_MAJOR_VERSION < 2
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue