summaryrefslogtreecommitdiff
path: root/usr.bin/top/version.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-12 23:09:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-12 23:09:31 +0000
commit23fc31409a630b6090b03af12f3645ec89b464b9 (patch)
treefeb94967f414aca9e216b57fb39892afcbac8ce2 /usr.bin/top/version.c
parentf578f4296df2db8bc10718f8fb418ac1699f1785 (diff)
knf
Diffstat (limited to 'usr.bin/top/version.c')
-rw-r--r--usr.bin/top/version.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.bin/top/version.c b/usr.bin/top/version.c
index d3b8086a5d3..0993d14a2fe 100644
--- a/usr.bin/top/version.c
+++ b/usr.bin/top/version.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: version.c,v 1.5 2003/06/12 22:30:23 pvalchev Exp $ */
+/* $OpenBSD: version.c,v 1.6 2003/06/12 23:09:30 deraadt Exp $ */
/*
* Top users/processes display for Unix
@@ -37,11 +37,8 @@
char *
version_string(void)
{
- static char version[16];
+ static char version[16];
- snprintf(version, sizeof(version), "%d.%d", VERSION, PATCHLEVEL);
-#ifdef BETA
- strlcat(version, BETA, sizeof version);
-#endif
- return(version);
+ snprintf(version, sizeof(version), "%d.%d", VERSION, PATCHLEVEL);
+ return(version);
}