Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev change E2BIG -> EINVAL, clearly "argument list too l...
details: https://anonhg.NetBSD.org/src/rev/6d28797ffdf6
branches: trunk
changeset: 759350:6d28797ffdf6
user: christos <christos%NetBSD.org@localhost>
date: Mon Dec 06 16:22:57 2010 +0000
description:
change E2BIG -> EINVAL, clearly "argument list too long" is the wrong message
to print.
diffstat:
sys/dev/rnd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 19a79b9b47a1 -r 6d28797ffdf6 sys/dev/rnd.c
--- a/sys/dev/rnd.c Mon Dec 06 15:54:00 2010 +0000
+++ b/sys/dev/rnd.c Mon Dec 06 16:22:57 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rnd.c,v 1.79 2010/12/04 17:39:50 pooka Exp $ */
+/* $NetBSD: rnd.c,v 1.80 2010/12/06 16:22:57 christos Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rnd.c,v 1.79 2010/12/04 17:39:50 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rnd.c,v 1.80 2010/12/06 16:22:57 christos Exp $");
#include <sys/param.h>
#include <sys/ioctl.h>
@@ -663,7 +663,7 @@
rnddata = (rnddata_t *)addr;
if (rnddata->len > sizeof(rnddata->data))
- return E2BIG;
+ return EINVAL;
mutex_enter(&rndpool_mtx);
rndpool_add_data(&rnd_pool, rnddata->data, rnddata->len,
Home |
Main Index |
Thread Index |
Old Index