Source-Changes-HG archive

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

[src/trunk]: src/common prop_*_copyout takes an object as second parameter, n...



details:   https://anonhg.NetBSD.org/src/rev/227f979f5c71
branches:  trunk
changeset: 761069:227f979f5c71
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu Jan 20 11:17:58 2011 +0000

description:
prop_*_copyout takes an object as second parameter, not a pointer to object.

diffstat:

 common/include/prop/prop_array.h      |   4 ++--
 common/include/prop/prop_dictionary.h |   4 ++--
 common/lib/libprop/prop_kern.c        |  10 +++++-----
 3 files changed, 9 insertions(+), 9 deletions(-)

diffs (69 lines):

diff -r f415df4d6f9b -r 227f979f5c71 common/include/prop/prop_array.h
--- a/common/include/prop/prop_array.h  Thu Jan 20 10:48:37 2011 +0000
+++ b/common/include/prop/prop_array.h  Thu Jan 20 11:17:58 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prop_array.h,v 1.10 2011/01/19 20:34:23 bouyer Exp $    */
+/*     $NetBSD: prop_array.h,v 1.11 2011/01/20 11:17:58 bouyer Exp $    */
 
 /*-
  * Copyright (c) 2006, 2009 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
                                        prop_array_t *);
 #elif defined(_KERNEL)
 int            prop_array_copyin(const struct plistref *, prop_array_t *);
-int            prop_array_copyout(struct plistref *, prop_array_t *);
+int            prop_array_copyout(struct plistref *, prop_array_t);
 int            prop_array_copyin_ioctl(const struct plistref *, const u_long,
                                        prop_array_t *);
 int            prop_array_copyout_ioctl(struct plistref *, const u_long,
diff -r f415df4d6f9b -r 227f979f5c71 common/include/prop/prop_dictionary.h
--- a/common/include/prop/prop_dictionary.h     Thu Jan 20 10:48:37 2011 +0000
+++ b/common/include/prop/prop_dictionary.h     Thu Jan 20 11:17:58 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prop_dictionary.h,v 1.11 2011/01/19 20:34:23 bouyer Exp $      */
+/*     $NetBSD: prop_dictionary.h,v 1.12 2011/01/20 11:17:58 bouyer Exp $      */
 
 /*-
  * Copyright (c) 2006, 2009 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
 int            prop_dictionary_copyin(const struct plistref *,
                                       prop_dictionary_t *);
 int            prop_dictionary_copyout(struct plistref *,
-                                      prop_dictionary_t *);
+                                      prop_dictionary_t);
 int            prop_dictionary_copyin_ioctl(const struct plistref *,
                                             const u_long,
                                             prop_dictionary_t *);
diff -r f415df4d6f9b -r 227f979f5c71 common/lib/libprop/prop_kern.c
--- a/common/lib/libprop/prop_kern.c    Thu Jan 20 10:48:37 2011 +0000
+++ b/common/lib/libprop/prop_kern.c    Thu Jan 20 11:17:58 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prop_kern.c,v 1.15 2011/01/19 20:34:23 bouyer Exp $    */
+/*     $NetBSD: prop_kern.c,v 1.16 2011/01/20 11:17:58 bouyer Exp $    */
 
 /*-
  * Copyright (c) 2006, 2009 The NetBSD Foundation, Inc.
@@ -471,9 +471,9 @@
  *     Copy out an array to a syscall arg.
  */
 int
-prop_array_copyout(struct plistref *pref, prop_array_t *arrayp)
+prop_array_copyout(struct plistref *pref, prop_array_t array)
 {
-       return (_prop_object_copyout(pref, (prop_object_t *)arrayp));
+       return (_prop_object_copyout(pref, array));
 }
 
 /*
@@ -481,9 +481,9 @@
  *     Copy out a dictionary to a syscall arg.
  */
 int
-prop_dictionary_copyout(struct plistref *pref, prop_dictionary_t *dictp)
+prop_dictionary_copyout(struct plistref *pref, prop_dictionary_t dict)
 {
-       return (_prop_object_copyout(pref, (prop_object_t *)dictp));
+       return (_prop_object_copyout(pref, dict));
 }
 
 static int



Home | Main Index | Thread Index | Old Index