diff options
author | Mark Johnston <markj@FreeBSD.org> | 2020-02-22 17:44:28 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2020-02-22 17:44:28 +0000 |
commit | 0464f16e91d6f654e853004fd8949849c7459dc7 (patch) | |
tree | f85b4030a9bd51b77144b246d4ee6d086bd65ffb /sys/vm/uma.h | |
parent | cef81f8f01493b181925da69c963a301ae45710e (diff) |
Constify uma_zcache_create() and uma_zsecond_create()'s "name" argument.
It is already internally handled as a pointer to a const string, in
particular by uma_zcreate().
Fix indentation while here.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=358249
Diffstat (limited to 'sys/vm/uma.h')
-rw-r--r-- | sys/vm/uma.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/vm/uma.h b/sys/vm/uma.h index 52f91b2fe1ba..ef195c65b16f 100644 --- a/sys/vm/uma.h +++ b/sys/vm/uma.h @@ -213,8 +213,8 @@ uma_zone_t uma_zcreate(const char *name, size_t size, uma_ctor ctor, * A pointer to a structure which is intended to be opaque to users of * the interface. The value may be null if the wait flag is not set. */ -uma_zone_t uma_zsecond_create(char *name, uma_ctor ctor, uma_dtor dtor, - uma_init zinit, uma_fini zfini, uma_zone_t master); +uma_zone_t uma_zsecond_create(const char *name, uma_ctor ctor, uma_dtor dtor, + uma_init zinit, uma_fini zfini, uma_zone_t master); /* * Create cache-only zones. @@ -225,9 +225,9 @@ uma_zone_t uma_zsecond_create(char *name, uma_ctor ctor, uma_dtor dtor, * zones. The 'arg' parameter is passed to import/release and is caller * specific. */ -uma_zone_t uma_zcache_create(char *name, int size, uma_ctor ctor, uma_dtor dtor, - uma_init zinit, uma_fini zfini, uma_import zimport, - uma_release zrelease, void *arg, int flags); +uma_zone_t uma_zcache_create(const char *name, int size, uma_ctor ctor, + uma_dtor dtor, uma_init zinit, uma_fini zfini, uma_import zimport, + uma_release zrelease, void *arg, int flags); /* * Definitions for uma_zcreate flags |