diff options
author | seb <seb@pkgsrc.org> | 2003-09-30 19:13:30 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2003-09-30 19:13:30 +0000 |
commit | 34700d01e6572bc8c6d76ef7bfd66223c51864b7 (patch) | |
tree | ab11609aed9a10eb8e7373651056d5295349855c | |
parent | 5d42c0bd0a9d57ea265884b0aece301ffd50ef99 (diff) | |
download | pkgsrc-34700d01e6572bc8c6d76ef7bfd66223c51864b7.tar.gz |
Update to version 0.2.
Fix a mostly harmless bug: a utsname.machine string was added at the
end of utsname.version string.
-rw-r--r-- | pkgtools/libkver/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/libkver/files/lib/kver.c | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/pkgtools/libkver/Makefile b/pkgtools/libkver/Makefile index 422941f5408..3f872a06099 100644 --- a/pkgtools/libkver/Makefile +++ b/pkgtools/libkver/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2003/07/21 17:14:06 martti Exp $ +# $NetBSD: Makefile,v 1.6 2003/09/30 19:13:30 seb Exp $ DISTNAME= libkver-${VERSION} CATEGORIES= pkgtools @@ -17,7 +17,7 @@ NO_MTREE= # defined NO_PKG_REGISTER= # defined NO_PACKAGE= Deinstallation is not permitted -VERSION= 0.1 +VERSION= 0.2 ONLY_FOR_PLATFORM= NetBSD-*-* diff --git a/pkgtools/libkver/files/lib/kver.c b/pkgtools/libkver/files/lib/kver.c index d3c1721766f..1e6abd168c3 100644 --- a/pkgtools/libkver/files/lib/kver.c +++ b/pkgtools/libkver/files/lib/kver.c @@ -1,4 +1,4 @@ -/* $NetBSD: kver.c,v 1.1.1.1 2003/07/11 14:50:37 seb Exp $ */ +/* $NetBSD: kver.c,v 1.2 2003/09/30 19:13:30 seb Exp $ */ #include <sys/types.h> #include <sys/param.h> @@ -8,7 +8,7 @@ #include <errno.h> #include <string.h> -#define KVER_VERSION_FMT "NetBSD %.6s (GENERIC) #0: %.40s root@localhost:/sys/arch/%.20s/compile/GENERIC %.20s" +#define KVER_VERSION_FMT "NetBSD %.6s (GENERIC) #0: %.40s root@localhost:/sys/arch/%.20s/compile/GENERIC" /* _KVER_DATE is not really the real release date but the date of src/sys/sys/param.h's revision tagged for the release */ @@ -56,8 +56,8 @@ static int kver_osrevision = _KVER_OSREVISION; /* 6 chars for osrelease */ /* 40 chars for the date string */ -/* 40 chars for 2 utsname.machine */ -#define KVER_VERSION_LEN (sizeof(KVER_VERSION_FMT) + 6 + 40 + 40 + 1) +/* 20 chars for utsname.machine */ +#define KVER_VERSION_LEN (sizeof(KVER_VERSION_FMT) + 6 + 40 + 20 + 1) static char kver_version[KVER_VERSION_LEN] = ""; static struct utsname real_utsname; @@ -69,7 +69,6 @@ kver_init(void) snprintf(kver_version, KVER_VERSION_LEN, KVER_VERSION_FMT, kver_osrelease, kver_date, - real_utsname.machine, real_utsname.machine); } |