Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libutil Make this compile without warnings.
details: https://anonhg.NetBSD.org/src/rev/cd7a4325b6db
branches: trunk
changeset: 583694:cd7a4325b6db
user: elad <elad%NetBSD.org@localhost>
date: Fri Aug 19 10:10:08 2005 +0000
description:
Make this compile without warnings.
diffstat:
lib/libutil/passwd.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 098e8998f818 -r cd7a4325b6db lib/libutil/passwd.c
--- a/lib/libutil/passwd.c Fri Aug 19 10:08:48 2005 +0000
+++ b/lib/libutil/passwd.c Fri Aug 19 10:10:08 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: passwd.c,v 1.40 2005/08/18 21:07:23 elad Exp $ */
+/* $NetBSD: passwd.c,v 1.41 2005/08/19 10:10:08 elad Exp $ */
/*
* Copyright (c) 1987, 1993, 1994, 1995
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: passwd.c,v 1.40 2005/08/18 21:07:23 elad Exp $");
+__RCSID("$NetBSD: passwd.c,v 1.41 2005/08/19 10:10:08 elad Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -298,7 +298,7 @@
pw_equal(char *buf, struct passwd *pw)
{
struct passwd buf_pw;
- int len;
+ size_t len;
_DIAGASSERT(buf != NULL);
_DIAGASSERT(pw != NULL);
@@ -367,7 +367,7 @@
return (0);
}
- for (done = 0; fgets(buf, sizeof(buf), from);) {
+ for (done = 0; fgets(buf, (int)sizeof(buf), from);) {
if (!strchr(buf, '\n')) {
snprintf(errbuf, errbufsz, "%s: line too long", mpwd);
return (0);
Home |
Main Index |
Thread Index |
Old Index