Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libutil Lint warnings.
details: https://anonhg.NetBSD.org/src/rev/0b56b5e5a04d
branches: trunk
changeset: 584428:0b56b5e5a04d
user: elad <elad%NetBSD.org@localhost>
date: Sat Sep 17 01:51:21 2005 +0000
description:
Lint warnings.
diffstat:
lib/libutil/getlabelsector.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 2905bc7cd850 -r 0b56b5e5a04d lib/libutil/getlabelsector.c
--- a/lib/libutil/getlabelsector.c Fri Sep 16 23:55:14 2005 +0000
+++ b/lib/libutil/getlabelsector.c Sat Sep 17 01:51:21 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getlabelsector.c,v 1.2 2003/01/24 21:55:03 fvdl Exp $ */
+/* $NetBSD: getlabelsector.c,v 1.3 2005/09/17 01:51:21 elad Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getlabelsector.c,v 1.2 2003/01/24 21:55:03 fvdl Exp $");
+__RCSID("$NetBSD: getlabelsector.c,v 1.3 2005/09/17 01:51:21 elad Exp $");
#endif
#include <sys/param.h>
@@ -53,7 +53,7 @@
mib[0] = CTL_KERN;
mib[1] = KERN_LABELSECTOR;
varlen = sizeof(sector);
- if (sysctl(mib, 2, §or, &varlen, NULL, 0) < 0)
+ if (sysctl(mib, 2, §or, &varlen, NULL, (size_t)0) < 0)
return (-1);
return sector;
@@ -68,7 +68,7 @@
mib[0] = CTL_KERN;
mib[1] = KERN_LABELOFFSET;
varlen = sizeof(offset);
- if (sysctl(mib, 2, &offset, &varlen, NULL, 0) < 0)
+ if (sysctl(mib, 2, &offset, &varlen, NULL, (size_t)0) < 0)
return (-1);
return ((off_t)offset);
Home |
Main Index |
Thread Index |
Old Index