diff options
| author | mrg <mrg@NetBSD.org> | 1997-10-19 09:39:35 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 1997-10-19 09:39:35 +0000 |
| commit | ca2afdd4530229f20cfc42dda4439bbfc2b473dd (patch) | |
| tree | a41434c7c1bb2993be4017a83dec0db49d2fbbfb /usr.sbin/pkg_install/lib/file.c | |
| parent | cfe6621afa6d4590aca0b8e08f4ebd91f07e1fc1 (diff) | |
fix compile warnings on the alpha.
Diffstat (limited to 'usr.sbin/pkg_install/lib/file.c')
| -rw-r--r-- | usr.sbin/pkg_install/lib/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index 1f3798e619a..89c1906b94f 100644 --- a/usr.sbin/pkg_install/lib/file.c +++ b/usr.sbin/pkg_install/lib/file.c @@ -1,11 +1,11 @@ -/* $NetBSD: file.c,v 1.7 1997/10/18 11:05:51 lukem Exp $ */ +/* $NetBSD: file.c,v 1.8 1997/10/19 09:39:48 mrg Exp $ */ #include <sys/cdefs.h> #ifndef lint #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.7 1997/10/18 11:05:51 lukem Exp $"); +__RCSID("$NetBSD: file.c,v 1.8 1997/10/19 09:39:48 mrg Exp $"); #endif #endif @@ -342,7 +342,7 @@ fileGetContents(char *fname) cleanup(0), errx(2, "unable to open '%s' for reading", fname); if (read(fd, contents, sb.st_size) != sb.st_size) cleanup(0), errx(2, "short read on '%s' - did not get %qd bytes", - fname, sb.st_size); + fname, (long long)sb.st_size); close(fd); contents[sb.st_size] = '\0'; return contents; |
