From e5ce904ddbd6175ba86ed827bf096b76b11b5511 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 3 Dec 2004 06:42:06 +0000 Subject: r4054: got rid of Realloc(), replacing it with the type safe macro realloc_p() (This used to be commit b0f6e21481745d1b2ced28d9ed6f09f6ffd99562) --- source4/smbd/process_model.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/smbd') diff --git a/source4/smbd/process_model.c b/source4/smbd/process_model.c index 2a3efe2088..ad9a26d377 100644 --- a/source4/smbd/process_model.c +++ b/source4/smbd/process_model.c @@ -43,7 +43,7 @@ const struct model_ops *process_model_startup(const char *model) } /* the list of currently registered process models */ -static struct { +static struct process_model { struct model_ops *ops; } *models = NULL; static int num_models; @@ -65,7 +65,7 @@ NTSTATUS register_process_model(const void *_ops) return NT_STATUS_OBJECT_NAME_COLLISION; } - models = Realloc(models, sizeof(models[0]) * (num_models+1)); + models = realloc_p(models, struct process_model, num_models+1); if (!models) { smb_panic("out of memory in register_process_model"); } -- cgit