aboutsummaryrefslogtreecommitdiff
path: root/lib/mount_bsd.c
diff options
context:
space:
mode:
authorGravatar Csaba Henk <csaba.henk@creo.hu>2008-01-03 11:08:44 +0000
committerGravatar Csaba Henk <csaba.henk@creo.hu>2008-01-03 11:08:44 +0000
commitfdfba078f6bde0206bbcb16cd6dee999492bf6c3 (patch)
tree39680fa2a0c366c75c7baa02d8610627f2c351b8 /lib/mount_bsd.c
parent0520bc053641e595805dd0aeba569773cd984a1e (diff)
lib/mount_bsd.c: fix some warnings
Diffstat (limited to 'lib/mount_bsd.c')
-rw-r--r--lib/mount_bsd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mount_bsd.c b/lib/mount_bsd.c
index fb4f12a..a1c609d 100644
--- a/lib/mount_bsd.c
+++ b/lib/mount_bsd.c
@@ -172,7 +172,7 @@ void fuse_unmount_compat22(const char *mountpoint)
char *ssc, *umount_cmd;
FILE *sf;
int rv;
- char *seekscript =
+ char seekscript[] =
/* error message is annoying in help output */
"exec 2>/dev/null; "
"/usr/bin/fstat " FUSE_DEV_TRUNK "* | "
@@ -235,7 +235,7 @@ void fuse_kern_unmount(const char *mountpoint, int fd)
/* Check if kernel is doing init in background */
static int init_backgrounded(void)
{
- int ibg, len;
+ unsigned ibg, len;
len = sizeof(ibg);
@@ -251,7 +251,7 @@ static int fuse_mount_core(const char *mountpoint, const char *opts)
const char *mountprog = FUSERMOUNT_PROG;
int fd;
char *fdnam, *dev;
- int pid;
+ pid_t pid;
fdnam = getenv("FUSE_DEV_FD");
@@ -274,7 +274,7 @@ static int fuse_mount_core(const char *mountpoint, const char *opts)
dev = getenv("FUSE_DEV_NAME");
if (! dev)
- dev = FUSE_DEV_TRUNK;
+ dev = (char *)FUSE_DEV_TRUNK;
if ((fd = open(dev, O_RDWR)) < 0) {
perror("fuse: failed to open fuse device");