From 40c48e4f3341c0fdf32f65758630d0cf2904a02d Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 15 Oct 2006 19:34:51 +0000 Subject: [PATCH] prevent empty else. --- lib/libutil/snprintb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libutil/snprintb.c b/lib/libutil/snprintb.c index 862038c0aa6b..0db3f4ee66fa 100644 --- a/lib/libutil/snprintb.c +++ b/lib/libutil/snprintb.c @@ -1,4 +1,4 @@ -/* $NetBSD: snprintb.c,v 1.5 2005/08/27 17:28:26 elad Exp $ */ +/* $NetBSD: snprintb.c,v 1.6 2006/10/15 19:34:51 christos Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -39,7 +39,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: snprintb.c,v 1.5 2005/08/27 17:28:26 elad Exp $"); +__RCSID("$NetBSD: snprintb.c,v 1.6 2006/10/15 19:34:51 christos Exp $"); #endif /* @@ -92,7 +92,7 @@ snprintb(buf, buflen, bitfmt, val) return len; } -#define PUTC(c) if (++len < buflen) *bp++ = (c); else +#define PUTC(c) if (++len < buflen) *bp++ = (c) #define PUTS(s) while ((ch = *(s)++) != 0) PUTC(ch) /*