Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/puffs/mount_psshfs Fix compilation with -Wsign-comp...



details:   https://anonhg.NetBSD.org/src/rev/36e5818aeae4
branches:  trunk
changeset: 750611:36e5818aeae4
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Jan 08 10:53:31 2010 +0000

description:
Fix compilation with -Wsign-compare.  Apparently 5.0 doesn't have
-Wsign-compare enabled, which explains a thing or two ...

pointed out by gson

diffstat:

 usr.sbin/puffs/mount_psshfs/psbuf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1786475e9ace -r 36e5818aeae4 usr.sbin/puffs/mount_psshfs/psbuf.c
--- a/usr.sbin/puffs/mount_psshfs/psbuf.c       Fri Jan 08 06:25:14 2010 +0000
+++ b/usr.sbin/puffs/mount_psshfs/psbuf.c       Fri Jan 08 10:53:31 2010 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: psbuf.c,v 1.17 2010/01/07 21:19:45 pooka Exp $        */
+/*      $NetBSD: psbuf.c,v 1.18 2010/01/08 10:53:31 pooka Exp $        */
 
 /*
  * Copyright (c) 2006-2009  Antti Kantee.  All Rights Reserved.
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: psbuf.c,v 1.17 2010/01/07 21:19:45 pooka Exp $");
+__RCSID("$NetBSD: psbuf.c,v 1.18 2010/01/08 10:53:31 pooka Exp $");
 #endif /* !lint */
 
 /*
@@ -260,7 +260,7 @@
        const struct psshfs_ctx *pctx)
 {
        uint32_t flags;
-       int32_t theuid = -1, thegid = -1;
+       uint32_t theuid = -1, thegid = -1;
        flags = 0;
 
        if (va->va_size != (uint64_t)PUFFS_VNOVAL)



Home | Main Index | Thread Index | Old Index