- Changed the size element of uma_zctor_args to be size_t instead of int.

- Changed uma_zcreate to accept the size argument as a size_t intead of
  int.

Approved by:	jeff
This commit is contained in:
Andrew R. Reiter 2002-05-02 07:36:30 +00:00
parent 2647924585
commit c3bdc05fb9
2 changed files with 4 additions and 4 deletions

View File

@ -159,7 +159,7 @@ typedef void (*uma_fini)(void *mem, int size);
* the interface. The value may be null if the wait flag is not set.
*/
uma_zone_t uma_zcreate(char *name, int size, uma_ctor ctor, uma_dtor dtor,
uma_zone_t uma_zcreate(char *name, size_t size, uma_ctor ctor, uma_dtor dtor,
uma_init uminit, uma_fini fini, int align,
u_int16_t flags);

View File

@ -137,7 +137,7 @@ static int maxcpu;
*/
struct uma_zctor_args {
char *name;
int size;
size_t size;
uma_ctor ctor;
uma_dtor dtor;
uma_init uminit;
@ -1267,8 +1267,8 @@ uma_startup3(void)
/* See uma.h */
uma_zone_t
uma_zcreate(char *name, int size, uma_ctor ctor, uma_dtor dtor, uma_init uminit,
uma_fini fini, int align, u_int16_t flags)
uma_zcreate(char *name, size_t size, uma_ctor ctor, uma_dtor dtor,
uma_init uminit, uma_fini fini, int align, u_int16_t flags)
{
struct uma_zctor_args args;