diff options
author | 1996-08-10 22:43:00 +0000 | |
---|---|---|
committer | 1996-08-10 22:43:00 +0000 | |
commit | cd408bca559f0bec0bd963f979c6c85a760b5051 (patch) | |
tree | d39bef02aedeaec15bb5326adc0c776262435556 | |
parent | silence warning (diff) | |
download | wireguard-openbsd-cd408bca559f0bec0bd963f979c6c85a760b5051.tar.xz wireguard-openbsd-cd408bca559f0bec0bd963f979c6c85a760b5051.zip |
from bde@freebsd.org; if printregs() sees no bit names, avoid using them
-rw-r--r-- | bin/mt/mt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/mt/mt.c b/bin/mt/mt.c index cea4c9bdda7..ee87ff2fda7 100644 --- a/bin/mt/mt.c +++ b/bin/mt/mt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mt.c,v 1.12 1996/08/10 22:25:58 deraadt Exp $ */ +/* $OpenBSD: mt.c,v 1.13 1996/08/10 22:43:00 deraadt Exp $ */ /* $NetBSD: mt.c,v 1.14.2.1 1996/05/27 15:12:11 mrg Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)mt.c 8.2 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: mt.c,v 1.12 1996/08/10 22:25:58 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: mt.c,v 1.13 1996/08/10 22:43:00 deraadt Exp $"; #endif #endif /* not lint */ @@ -287,6 +287,8 @@ printreg(s, v, bits) printf("%s=%o", s, v); else printf("%s=%x", s, v); + if (!bits) + return; bits++; if (v && bits) { putchar('<'); |