summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkgtools/libkver/Makefile4
-rw-r--r--pkgtools/libkver/files/lib/kver.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/pkgtools/libkver/Makefile b/pkgtools/libkver/Makefile
index dcc138067f0..8edf33d4a9c 100644
--- a/pkgtools/libkver/Makefile
+++ b/pkgtools/libkver/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2005/01/06 05:32:29 tv Exp $
+# $NetBSD: Makefile,v 1.13 2005/03/30 06:41:01 seb Exp $
DISTNAME= libkver-${VERSION}
CATEGORIES= pkgtools
@@ -18,7 +18,7 @@ NO_PKGTOOLS_REQD_CHECK= # defined
NO_CHECKSUM= # defined
NO_MTREE= # defined
-VERSION= 0.5
+VERSION= 0.6
ONLY_FOR_PLATFORM= NetBSD-*-*
diff --git a/pkgtools/libkver/files/lib/kver.c b/pkgtools/libkver/files/lib/kver.c
index df8143d89f3..7d62bcdf256 100644
--- a/pkgtools/libkver/files/lib/kver.c
+++ b/pkgtools/libkver/files/lib/kver.c
@@ -1,4 +1,4 @@
-/* $NetBSD: kver.c,v 1.6 2005/01/14 17:15:21 cube Exp $ */
+/* $NetBSD: kver.c,v 1.7 2005/03/30 06:41:01 seb Exp $ */
#include <sys/types.h>
#include <sys/param.h>
@@ -89,10 +89,10 @@ str2osrevision(char *s)
n = (n * 10) + (*s - '0');
}
r += (n * 100);
- if (*s != 0)
- return KVER_INVALID_OSRELEASE;
- return r;
}
+ /* nothing more, return */
+ if (*s == 0)
+ return r;
/* or optional underscore followed by release status */
if (*s == '_')
/* ignore the trailing label */