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_portal lp64 sign comparison



details:   https://anonhg.NetBSD.org/src/rev/fb521634d329
branches:  trunk
changeset: 748785:fb521634d329
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Nov 05 13:09:56 2009 +0000

description:
lp64 sign comparison

diffstat:

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

diffs (27 lines):

diff -r d94bb48a3773 -r fb521634d329 usr.sbin/puffs/mount_portal/puffs_portal.c
--- a/usr.sbin/puffs/mount_portal/puffs_portal.c        Thu Nov 05 12:00:18 2009 +0000
+++ b/usr.sbin/puffs/mount_portal/puffs_portal.c        Thu Nov 05 13:09:56 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: puffs_portal.c,v 1.18 2009/03/18 09:10:16 pooka Exp $  */
+/*     $NetBSD: puffs_portal.c,v 1.19 2009/11/05 13:09:56 pooka Exp $  */
 
 /*
  * Copyright (c) 2007  Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: puffs_portal.c,v 1.18 2009/03/18 09:10:16 pooka Exp $");
+__RCSID("$NetBSD: puffs_portal.c,v 1.19 2009/11/05 13:09:56 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -300,7 +300,7 @@
        n = sendmsg(s, &msg, 0);
        if (n == -1)
                rv = errno;
-       else if (n < sizeof(int))
+       else if (n < (ssize_t)sizeof(int))
                rv = EPROTO;
 
        free(cmp);



Home | Main Index | Thread Index | Old Index