projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sparse fixup: warning: non-ANSI function declaration of function '...'
[tinc]
/
src
/
xmalloc.c
diff --git
a/src/xmalloc.c
b/src/xmalloc.c
index
4e79aff
..
131b41f
100644
(file)
--- a/
src/xmalloc.c
+++ b/
src/xmalloc.c
@@
-70,8
+70,7
@@
xalloc_fail (int size)
/* Allocate N bytes of memory dynamically, with error checking. */
void *
/* Allocate N bytes of memory dynamically, with error checking. */
void *
-xmalloc (n)
- size_t n;
+xmalloc (size_t n)
{
void *p;
{
void *p;
@@
-84,8
+83,7
@@
xmalloc (n)
/* Allocate N bytes of memory dynamically, and set it all to zero. */
void *
/* Allocate N bytes of memory dynamically, and set it all to zero. */
void *
-xmalloc_and_zero (n)
- size_t n;
+xmalloc_and_zero (size_t n)
{
void *p;
{
void *p;
@@
-101,9
+99,7
@@
xmalloc_and_zero (n)
If P is NULL, run xmalloc. */
void *
If P is NULL, run xmalloc. */
void *
-xrealloc (p, n)
- void *p;
- size_t n;
+xrealloc (void *p, size_t n)
{
p = realloc (p, n);
if (p == 0)
{
p = realloc (p, n);
if (p == 0)