Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpuser happiness is a quiet lint
details: https://anonhg.NetBSD.org/src/rev/50f5d32dd03d
branches: trunk
changeset: 761262:50f5d32dd03d
user: pooka <pooka%NetBSD.org@localhost>
date: Sat Jan 22 14:22:10 2011 +0000
description:
happiness is a quiet lint
diffstat:
lib/librumpuser/rumpuser.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 21016cb354af -r 50f5d32dd03d lib/librumpuser/rumpuser.c
--- a/lib/librumpuser/rumpuser.c Sat Jan 22 14:18:55 2011 +0000
+++ b/lib/librumpuser/rumpuser.c Sat Jan 22 14:22:10 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser.c,v 1.13 2011/01/20 15:00:12 pooka Exp $ */
+/* $NetBSD: rumpuser.c,v 1.14 2011/01/22 14:22:10 pooka Exp $ */
/*
* Copyright (c) 2007-2010 Antti Kantee. All Rights Reserved.
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
#if !defined(lint)
-__RCSID("$NetBSD: rumpuser.c,v 1.13 2011/01/20 15:00:12 pooka Exp $");
+__RCSID("$NetBSD: rumpuser.c,v 1.14 2011/01/22 14:22:10 pooka Exp $");
#endif /* !lint */
/* thank the maker for this */
@@ -207,7 +207,7 @@
if (alignment == 0)
alignment = sizeof(void *);
- rv = posix_memalign(&mem, alignment, howmuch);
+ rv = posix_memalign(&mem, (size_t)alignment, howmuch);
if (__predict_false(rv != 0)) {
if (rv == EINVAL) {
printf("rumpuser_malloc: invalid alignment %d\n",
Home |
Main Index |
Thread Index |
Old Index