Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Make debugging code compile.
details: https://anonhg.NetBSD.org/src/rev/0daeff9cc5c4
branches: trunk
changeset: 763240:0daeff9cc5c4
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Mon Mar 14 20:12:40 2011 +0000
description:
Make debugging code compile.
diffstat:
sys/kern/kern_exec.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 5b76d8362256 -r 0daeff9cc5c4 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c Mon Mar 14 19:05:19 2011 +0000
+++ b/sys/kern/kern_exec.c Mon Mar 14 20:12:40 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exec.c,v 1.312 2011/03/13 23:44:14 christos Exp $ */
+/* $NetBSD: kern_exec.c,v 1.313 2011/03/14 20:12:40 jakllsch Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.312 2011/03/13 23:44:14 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.313 2011/03/14 20:12:40 jakllsch Exp $");
#include "opt_ktrace.h"
#include "opt_modular.h"
@@ -673,7 +673,7 @@
len = argp + ARG_MAX - dp;
if ((error = (*fetch_element)(args, i, &sp)) != 0) {
DPRINTF(("%s: fetch_element args %d\n",
- error, __func__));
+ __func__, error));
goto bad;
}
if (!sp)
@@ -1320,7 +1320,7 @@
return error;
}
if ((error = copyoutstr(sp, dp, ARG_MAX, &len)) != 0) {
- COPYPRINTF("str", dp, ARG_MAX);
+ COPYPRINTF("str", dp, (size_t)ARG_MAX);
return error;
}
}
@@ -1338,7 +1338,7 @@
return error;
}
if ((error = copyoutstr(sp, dp, ARG_MAX, &len)) != 0) {
- COPYPRINTF("str", dp, ARG_MAX);
+ COPYPRINTF("str", dp, (size_t)ARG_MAX);
return error;
}
}
Home |
Main Index |
Thread Index |
Old Index