Sprinkle a few size_t casts to avoid conversion warnings.
This commit is contained in:
parent
b6f68b3740
commit
ec465210f2
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: prop_dictionary.c,v 1.13 2006/10/03 15:45:04 thorpej Exp $ */
|
||||
/* $NetBSD: prop_dictionary.c,v 1.14 2006/10/18 14:49:21 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
||||
@ -81,7 +81,7 @@ struct _prop_dictionary_keysym {
|
||||
#define PDK_SIZE_32 (sizeof(struct _prop_dictionary_keysym) + 32)
|
||||
#define PDK_SIZE_128 (sizeof(struct _prop_dictionary_keysym) + 128)
|
||||
|
||||
#define PDK_MAXKEY 128
|
||||
#define PDK_MAXKEY ((size_t)128)
|
||||
|
||||
_PROP_POOL_INIT(_prop_dictionary_keysym16_pool, PDK_SIZE_16, "pdict16")
|
||||
_PROP_POOL_INIT(_prop_dictionary_keysym32_pool, PDK_SIZE_32, "pdict32")
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: prop_object.c,v 1.9 2006/10/16 03:21:07 thorpej Exp $ */
|
||||
/* $NetBSD: prop_object.c,v 1.10 2006/10/18 14:49:21 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
||||
@ -224,7 +224,7 @@ _prop_object_externalize_append_encoded_cstring(
|
||||
return (TRUE);
|
||||
}
|
||||
|
||||
#define BUF_EXPAND 256
|
||||
#define BUF_EXPAND ((size_t)256)
|
||||
|
||||
/*
|
||||
* _prop_object_externalize_append_char --
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: prop_object_impl.h,v 1.9 2006/10/16 03:21:07 thorpej Exp $ */
|
||||
/* $NetBSD: prop_object_impl.h,v 1.10 2006/10/18 14:49:21 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
||||
@ -284,7 +284,7 @@ void * _prop_standalone_realloc(void *, size_t);
|
||||
#define _PROP_ASSERT(x) /*LINTED*/assert(x)
|
||||
|
||||
#define _PROP_MALLOC(s, t) malloc((s))
|
||||
#define _PROP_CALLOC(s, t) calloc(1, (s))
|
||||
#define _PROP_CALLOC(s, t) calloc((size_t)1, (s))
|
||||
#define _PROP_REALLOC(v, s, t) realloc((v), (s))
|
||||
#define _PROP_FREE(v, t) free((v))
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: prop_string.c,v 1.4 2006/08/22 21:21:23 thorpej Exp $ */
|
||||
/* $NetBSD: prop_string.c,v 1.5 2006/10/18 14:49:21 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
||||
@ -428,7 +428,7 @@ _prop_string_internalize(struct _prop_object_internalize_context *ctx)
|
||||
return (NULL);
|
||||
|
||||
/* Compute the length of the result. */
|
||||
if (_prop_object_internalize_decode_string(ctx, NULL, 0, &len,
|
||||
if (_prop_object_internalize_decode_string(ctx, NULL, (size_t)0, &len,
|
||||
NULL) == FALSE)
|
||||
return (NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user