aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/cnv.h
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2018-06-18 21:23:40 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2018-06-18 21:23:40 +0000
commit30665f3c42302105793ba18027ec02fd24801b9e (patch)
tree0897b43c2e699e421fda342a1ff09ba44438854d /sys/sys/cnv.h
parent0db44d5550ebc840bbd7bf4fbf32d0c49e9dfe93 (diff)
downloadsrc-30665f3c42302105793ba18027ec02fd24801b9e.tar.gz
src-30665f3c42302105793ba18027ec02fd24801b9e.zip
libnv: add const to cookies arguments
Pointed out by: pjd@
Notes
Notes: svn path=/head/; revision=335342
Diffstat (limited to 'sys/sys/cnv.h')
-rw-r--r--sys/sys/cnv.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/sys/sys/cnv.h b/sys/sys/cnv.h
index 9726cee19780..9ce8bc4807a6 100644
--- a/sys/sys/cnv.h
+++ b/sys/sys/cnv.h
@@ -52,8 +52,8 @@ __BEGIN_DECLS
/*
* Functions which returns information about the given cookie.
*/
-const char *cnvlist_name(void *cookie);
-int cnvlist_type(void *cookie);
+const char *cnvlist_name(const void *cookie);
+int cnvlist_type(const void *cookie);
/*
* The cnvlist_get functions returns value associated with the given cookie.
@@ -61,18 +61,18 @@ int cnvlist_type(void *cookie);
* not be freed by the caller.
*/
-bool cnvlist_get_bool(void *cookie);
-uint64_t cnvlist_get_number(void *cookie);
-const char *cnvlist_get_string(void *cookie);
-const nvlist_t *cnvlist_get_nvlist(void *cookie);
-const void *cnvlist_get_binary(void *cookie, size_t *sizep);
-const bool *cnvlist_get_bool_array(void *cookie, size_t *nitemsp);
-const uint64_t *cnvlist_get_number_array(void *cookie, size_t *nitemsp);
-const char * const *cnvlist_get_string_array(void *cookie, size_t *nitemsp);
-const nvlist_t * const *cnvlist_get_nvlist_array(void *cookie, size_t *nitemsp);
+bool cnvlist_get_bool(const void *cookie);
+uint64_t cnvlist_get_number(const void *cookie);
+const char *cnvlist_get_string(const void *cookie);
+const nvlist_t *cnvlist_get_nvlist(const void *cookie);
+const void *cnvlist_get_binary(const void *cookie, size_t *sizep);
+const bool *cnvlist_get_bool_array(const void *cookie, size_t *nitemsp);
+const uint64_t *cnvlist_get_number_array(const void *cookie, size_t *nitemsp);
+const char * const *cnvlist_get_string_array(const void *cookie, size_t *nitemsp);
+const nvlist_t * const *cnvlist_get_nvlist_array(const void *cookie, size_t *nitemsp);
#ifndef _KERNEL
-int cnvlist_get_descriptor(void *cookie);
-const int *cnvlist_get_descriptor_array(void *cookie, size_t *nitemsp);
+int cnvlist_get_descriptor(const void *cookie);
+const int *cnvlist_get_descriptor_array(const void *cookie, size_t *nitemsp);
#endif