From c9a1f04e004ecd224b9577917b8f1de8c6081288 Mon Sep 17 00:00:00 2001 From: wiz Date: Tue, 4 Apr 2006 06:31:22 +0000 Subject: Pull over v1.77 from src/usr.sbin: revision 1.77 date: 2006/03/26 18:11:22; author: christos; state: Exp; lines: +3 -3 PR/33123: Murray Armfield: standards compliance & glob.h Certain fields in glob.h need to be size_t; fix this and version glob(3). http://www.opengroup.org/onlinepubs/000095399/basedefs/glob.h.html --- pkgtools/pkg_install/files/lib/file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgtools') diff --git a/pkgtools/pkg_install/files/lib/file.c b/pkgtools/pkg_install/files/lib/file.c index 75d548de95a..75e9e3fb010 100644 --- a/pkgtools/pkg_install/files/lib/file.c +++ b/pkgtools/pkg_install/files/lib/file.c @@ -1,4 +1,4 @@ -/* $NetBSD: file.c,v 1.17 2005/12/06 01:08:09 ben Exp $ */ +/* $NetBSD: file.c,v 1.18 2006/04/04 06:31:22 wiz Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -17,7 +17,7 @@ #if 0 static const char *rcsid = "from FreeBSD Id: file.c,v 1.29 1997/10/08 07:47:54 charnier Exp"; #else -__RCSID("$NetBSD: file.c,v 1.17 2005/12/06 01:08:09 ben Exp $"); +__RCSID("$NetBSD: file.c,v 1.18 2006/04/04 06:31:22 wiz Exp $"); #endif #endif @@ -553,7 +553,7 @@ move_files(const char *dir, const char *pattern, const char *to) { char fpath[MaxPathSize]; glob_t globbed; - int i; + size_t i; (void) snprintf(fpath, sizeof(fpath), "%s/%s", dir, pattern); if ((i=glob(fpath, GLOB_NOSORT, NULL, &globbed)) != 0) { -- cgit v1.2.3