Commit c37c06b9 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(SMALLOC_MAGIC_ALLOC): Moved here from smalloc.h. Only define if

	USE_MALLOC_GUARDS is true.
(SMALLOC_MAGIC_FREE): Ditto.  (Bug 562).
parent 0693f908
/*
* $Id: ram-smalloc.c,v 0.35 2002/08/02 21:26:32 ceder Exp $
* $Id: ram-smalloc.c,v 0.36 2002/08/07 23:30:52 ceder Exp $
* Copyright (C) 1991-1996, 1998-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -141,6 +141,8 @@ static int no_of_allocated_blocks = 0;
#ifdef USE_MALLOC_GUARDS
# define OVERHEAD(s) ((s) + (2*sizeof(unsigned int) + 2))
# define SMALLOC_MAGIC_ALLOC 0x12FE56A0u
# define SMALLOC_MAGIC_FREE 0xCA348E63u
#else
/* When malloc() or realloc() is asked to allocate a 0-sized area,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment