Module Name:    src
Committed By:   pooka
Date:           Sat Jan 22 14:22:10 UTC 2011

Modified Files:
        src/lib/librumpuser: rumpuser.c

Log Message:
happiness is a quiet lint


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/librumpuser/rumpuser.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/librumpuser/rumpuser.c
diff -u src/lib/librumpuser/rumpuser.c:1.13 src/lib/librumpuser/rumpuser.c:1.14
--- src/lib/librumpuser/rumpuser.c:1.13	Thu Jan 20 15:00:12 2011
+++ src/lib/librumpuser/rumpuser.c	Sat Jan 22 14:22:10 2011
@@ -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",

Reply via email to