Update "rpm2pkg" package to version 3.0.2. Changes since 3.0.1:

Avoid problems on 32-bit platforms by gently hinting the compiler how
to do type expansion properly.

This fixes PR pkg/43478 by Greg Oster.
This commit is contained in:
tron 2010-06-15 19:52:02 +00:00
parent 72f5dbd3c5
commit 3b18b97f71
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.45 2010/06/14 11:24:47 tron Exp $
# $NetBSD: Makefile,v 1.46 2010/06/15 19:52:02 tron Exp $
DISTNAME= rpm2pkg-3.0.1
DISTNAME= rpm2pkg-3.0.2
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty

View file

@ -1,4 +1,4 @@
/* $NetBSD: rpm2pkg.c,v 1.10 2010/06/14 11:24:48 tron Exp $ */
/* $NetBSD: rpm2pkg.c,v 1.11 2010/06/15 19:52:02 tron Exp $ */
/*-
* Copyright (c) 2004-2009 The NetBSD Foundation, Inc.
@ -206,7 +206,7 @@ Open(int fd)
bzMatch++;
if (bzMatch == sizeof(BZipMagic)) {
archive_type = 1;
offset = i - bytes -
offset = (off_t)i - (off_t)bytes -
sizeof(BZipMagic) + 1;
break;
}
@ -219,7 +219,7 @@ Open(int fd)
gzMatch++;
if (gzMatch == sizeof(GZipMagic)) {
archive_type = 2;
offset = i - bytes -
offset = (off_t)i - (off_t)bytes -
sizeof(GZipMagic) + 1;
break;
}