Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/common/lib/libutil PR/54300: Andreas Gustafsson: Remove usel...



details:   https://anonhg.NetBSD.org/src/rev/0c178dc247be
branches:  trunk
changeset: 452070:0c178dc247be
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jun 17 17:03:58 2019 +0000

description:
PR/54300: Andreas Gustafsson: Remove useless case. should fix
lib/libutil/t_snprintb test regression on sparc

diffstat:

 common/lib/libutil/snprintb.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r f08e786d006e -r 0c178dc247be common/lib/libutil/snprintb.c
--- a/common/lib/libutil/snprintb.c     Mon Jun 17 17:01:50 2019 +0000
+++ b/common/lib/libutil/snprintb.c     Mon Jun 17 17:03:58 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: snprintb.c,v 1.20 2019/04/29 07:55:38 kre Exp $        */
+/*     $NetBSD: snprintb.c,v 1.21 2019/06/17 17:03:58 christos Exp $   */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
 
 #  include <sys/cdefs.h>
 #  if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: snprintb.c,v 1.20 2019/04/29 07:55:38 kre Exp $");
+__RCSID("$NetBSD: snprintb.c,v 1.21 2019/06/17 17:03:58 christos Exp $");
 #  endif
 
 #  include <sys/types.h>
@@ -51,7 +51,7 @@
 #  include <errno.h>
 # else /* ! _KERNEL */
 #  include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: snprintb.c,v 1.20 2019/04/29 07:55:38 kre Exp $");
+__KERNEL_RCSID(0, "$NetBSD: snprintb.c,v 1.21 2019/06/17 17:03:58 christos Exp $");
 #  include <sys/param.h>
 #  include <sys/inttypes.h>
 #  include <sys/systm.h>
@@ -168,7 +168,7 @@
                }
 #define FMTSTR(sb, f)                                                  \
        do {                                                            \
-               f_len = snprintf(bp, buflen - t_len, sb, (int)f);       \
+               f_len = snprintf(bp, buflen - t_len, sb, f);            \
                if (f_len < 0)                                          \
                        goto internal;                                  \
                t_len += f_len;                                         \



Home | Main Index | Thread Index | Old Index