Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
c37c06b9
Commit
c37c06b9
authored
Aug 07, 2002
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/ram-smalloc.c
View file @
c37c06b9
/*
* $Id: ram-smalloc.c,v 0.3
5
2002/08/0
2
2
1:26:3
2 ceder Exp $
* $Id: ram-smalloc.c,v 0.3
6
2002/08/0
7
2
3:30:5
2 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,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment