Module Name:    othersrc
Committed By:   pooka
Date:           Wed Apr 15 08:37:08 UTC 2009

Modified Files:
        othersrc/lib/libfsu_mount: rump_syspuffs.c

Log Message:
fix WARNS=4


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 othersrc/lib/libfsu_mount/rump_syspuffs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: othersrc/lib/libfsu_mount/rump_syspuffs.c
diff -u othersrc/lib/libfsu_mount/rump_syspuffs.c:1.1 othersrc/lib/libfsu_mount/rump_syspuffs.c:1.2
--- othersrc/lib/libfsu_mount/rump_syspuffs.c:1.1	Mon Mar 23 20:54:13 2009
+++ othersrc/lib/libfsu_mount/rump_syspuffs.c	Wed Apr 15 08:37:07 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: rump_syspuffs.c,v 1.1 2009/03/23 20:54:13 stacktic Exp $	*/
+/*	$NetBSD: rump_syspuffs.c,v 1.2 2009/04/15 08:37:07 pooka Exp $	*/
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -143,13 +143,13 @@
 		err(1, "mp 1");
 	if (len > MAXPATHLEN)
 		err(1, "mntpath > MAXPATHLEN");
-	if (read(sv[1], canon_dir, len) != len)
+	if ((size_t)read(sv[1], canon_dir, len) != len)
 		err(1, "mp 2");
 	if (read(sv[1], &len, sizeof(len)) != sizeof(len))
 		err(1, "fn 1");
 	if (len > MAXPATHLEN)
 		err(1, "devpath > MAXPATHLEN");
-	if (read(sv[1], canon_dev, len) != len)
+	if ((size_t)read(sv[1], canon_dev, len) != len)
 		err(1, "fn 2");
 	if (read(sv[1], mntflags, sizeof(*mntflags)) != sizeof(*mntflags))
 		err(1, "mntflags");

Reply via email to