diff options
author | wiz <wiz@pkgsrc.org> | 2006-04-04 06:31:22 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2006-04-04 06:31:22 +0000 |
commit | c9a1f04e004ecd224b9577917b8f1de8c6081288 (patch) | |
tree | ddadc4f8e196fbefde69053af72b80b7b3028eef /pkgtools | |
parent | 0d252fca2c0feb5fd073a6c396e602a8f765ac96 (diff) | |
download | pkgsrc-c9a1f04e004ecd224b9577917b8f1de8c6081288.tar.gz |
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
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkg_install/files/lib/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |