Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Change rndsource_setcb to use void (*)(size_t, void ...



details:   https://anonhg.NetBSD.org/src/rev/3fd690676b0a
branches:  trunk
changeset: 332036:3fd690676b0a
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Sep 05 05:52:27 2014 +0000

description:
Change rndsource_setcb to use void (*)(size_t, void *) for cb.

diffstat:

 sys/sys/rnd.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r c9dda4409301 -r 3fd690676b0a sys/sys/rnd.h
--- a/sys/sys/rnd.h     Fri Sep 05 05:48:59 2014 +0000
+++ b/sys/sys/rnd.h     Fri Sep 05 05:52:27 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rnd.h,v 1.41 2014/08/10 16:44:36 tls Exp $     */
+/*     $NetBSD: rnd.h,v 1.42 2014/09/05 05:52:27 matt Exp $    */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -154,7 +154,8 @@
 } krndsource_t;
 
 static inline void
-rndsource_setcb(struct krndsource *const rs, void *const cb, void *const arg)
+rndsource_setcb(struct krndsource *const rs, void (*const cb)(size_t, void *),
+    void *const arg)
 {
        rs->get = cb;
        rs->getarg = arg;



Home | Main Index | Thread Index | Old Index