summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/bgplg/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/bgplg/misc.c b/usr.bin/bgplg/misc.c
index aaba4223d8b..8d3777f9721 100644
--- a/usr.bin/bgplg/misc.c
+++ b/usr.bin/bgplg/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.3 2009/05/01 22:27:23 sthen Exp $ */
+/* $OpenBSD: misc.c,v 1.4 2011/04/19 23:54:00 matthew Exp $ */
/*
* Copyright (c) 2005, 2006 Reyk Floeter <reyk@vantronix.net>
@@ -39,7 +39,7 @@ int
lg_show_version(struct cmd *cmds, char **argv)
{
struct utsname uts;
- if (uname(&uts) == 0)
+ if (uname(&uts) >= 0)
printf("%s %s (%s)\n\n", uts.sysname, uts.release, uts.machine);
printf("%s - %s\n", NAME, BRIEF);
return (0);