diff options
author | apb <apb@pkgsrc.org> | 2013-01-04 06:00:48 +0000 |
---|---|---|
committer | apb <apb@pkgsrc.org> | 2013-01-04 06:00:48 +0000 |
commit | c2bb43e11fb41f3b3b897074255fd181cc1cba17 (patch) | |
tree | c0f352a87a702604c1238a593ce5a170de1a9742 | |
parent | 97b1710d20568f238e1f84fcf53a9fc2f4df849a (diff) | |
download | pkgsrc-c2bb43e11fb41f3b3b897074255fd181cc1cba17.tar.gz |
* commit PLIST changes that I forgot to commit earlier;
* use size_t, not int, for a length passed to sysctl(2);
* bump version to 0.7.1.
-rw-r--r-- | pkgtools/libkver/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/libkver/PLIST | 5 | ||||
-rw-r--r-- | pkgtools/libkver/files/lib/kver.c | 4 |
3 files changed, 8 insertions, 5 deletions
diff --git a/pkgtools/libkver/Makefile b/pkgtools/libkver/Makefile index 931a6de61e0..a238ef1f4fd 100644 --- a/pkgtools/libkver/Makefile +++ b/pkgtools/libkver/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.32 2012/10/31 14:41:55 apb Exp $ +# $NetBSD: Makefile,v 1.33 2013/01/04 06:00:48 apb Exp $ DISTNAME= libkver-${VERSION} CATEGORIES= pkgtools @@ -18,7 +18,7 @@ CHECK_PERMS= no NO_PKGTOOLS_REQD_CHECK= yes USE_BSD_MAKEFILE= yes -VERSION= 0.7 +VERSION= 0.7.1 ONLY_FOR_PLATFORM= NetBSD-*-* diff --git a/pkgtools/libkver/PLIST b/pkgtools/libkver/PLIST index b49780a17a5..b8d50773761 100644 --- a/pkgtools/libkver/PLIST +++ b/pkgtools/libkver/PLIST @@ -1,8 +1,11 @@ -@comment $NetBSD: PLIST,v 1.4 2012/10/31 14:41:55 apb Exp $ +@comment $NetBSD: PLIST,v 1.5 2013/01/04 06:00:48 apb Exp $ lib/libkver.a lib/libkver.so lib/libkver.so.1 lib/libkver.so.1.0 +sbin/kver +man/cat8/kver.0 +man/man8/kver.8 man/cat3/kver.0 man/cat8/kver.0 man/man3/kver.3 diff --git a/pkgtools/libkver/files/lib/kver.c b/pkgtools/libkver/files/lib/kver.c index 28210cfdebe..abdad256c06 100644 --- a/pkgtools/libkver/files/lib/kver.c +++ b/pkgtools/libkver/files/lib/kver.c @@ -1,4 +1,4 @@ -/* $NetBSD: kver.c,v 1.11 2012/10/31 14:41:55 apb Exp $ */ +/* $NetBSD: kver.c,v 1.12 2013/01/04 06:00:48 apb Exp $ */ #define sysctl _sysctl #define uname _uname @@ -251,7 +251,7 @@ kver_initialize(void) /* machine_arch is not in struct utsname, so get default from sysctl */ if (kver.machine_arch[0] == '\0') { int mib[] = { CTL_HW, HW_MACHINE_ARCH, 0 }; - int len = sizeof(kver.machine_arch); + size_t len = sizeof(kver.machine_arch); int err; err = _sysctl(mib, 2, kver.machine_arch, &len, NULL, 0); |