Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libutil Use "unsigned int" instead of "u_int" to ...
details: https://anonhg.NetBSD.org/src/rev/6f4ce7d248db
branches: trunk
changeset: 787857:6f4ce7d248db
user: uwe <uwe%NetBSD.org@localhost>
date: Tue Jul 09 16:10:17 2013 +0000
description:
Use "unsigned int" instead of "u_int" to make it easier to steal.
u_int is out of fashion anyway...
diffstat:
common/lib/libutil/snprintb.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 9eea41eaa7e9 -r 6f4ce7d248db common/lib/libutil/snprintb.c
--- a/common/lib/libutil/snprintb.c Tue Jul 09 13:10:55 2013 +0000
+++ b/common/lib/libutil/snprintb.c Tue Jul 09 16:10:17 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: snprintb.c,v 1.7 2012/01/23 03:22:41 christos Exp $ */
+/* $NetBSD: snprintb.c,v 1.8 2013/07/09 16:10:17 uwe 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.7 2012/01/23 03:22:41 christos Exp $");
+__RCSID("$NetBSD: snprintb.c,v 1.8 2013/07/09 16:10:17 uwe Exp $");
# endif
# include <sys/types.h>
@@ -51,7 +51,7 @@
# include <errno.h>
# else
# include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: snprintb.c,v 1.7 2012/01/23 03:22:41 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: snprintb.c,v 1.8 2013/07/09 16:10:17 uwe Exp $");
# include <sys/param.h>
# include <sys/inttypes.h>
# include <sys/systm.h>
@@ -193,7 +193,7 @@
bit = *bitfmt++; /* now 0-origin */
switch (ch) {
case 'b':
- if (((u_int)(val >> bit) & 1) == 0)
+ if (((unsigned int)(val >> bit) & 1) == 0)
goto skip;
cur_fmt = c_fmt;
PUTSEP;
Home |
Main Index |
Thread Index |
Old Index