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
ISC Open Source Projects
BIND
Commits
4754765c
Commit
4754765c
authored
Dec 13, 1999
by
Mark Andrews
Browse files
Fully declare function pointers.
parent
8a21ac0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/dns/sec/openssl/mem.c
View file @
4754765c
...
...
@@ -123,13 +123,14 @@ static unsigned long mem_hash(MEM *a)
return
(
ret
);
}
static
void
*
(
*
malloc_locked_func
)()
=
(
void
*
(
*
)())
malloc
;
static
void
(
*
free_locked_func
)()
=
(
void
(
*
)())
free
;
static
void
*
(
*
malloc_func
)()
=
(
void
*
(
*
)())
malloc
;
static
void
*
(
*
realloc_func
)()
=
(
void
*
(
*
)())
realloc
;
static
void
(
*
free_func
)()
=
(
void
(
*
)())
free
;
void
CRYPTO_set_mem_functions
(
void
*
(
*
m
)(),
void
*
(
*
r
)(),
void
(
*
f
)())
static
void
*
(
*
malloc_locked_func
)(
int
)
=
(
void
*
(
*
)(
int
))
malloc
;
static
void
(
*
free_locked_func
)(
void
*
)
=
(
void
(
*
)(
void
*
))
free
;
static
void
*
(
*
malloc_func
)(
int
)
=
(
void
*
(
*
)(
int
))
malloc
;
static
void
*
(
*
realloc_func
)(
void
*
,
int
)
=
(
void
*
(
*
)(
void
*
,
int
))
realloc
;
static
void
(
*
free_func
)(
void
*
)
=
(
void
(
*
)(
void
*
))
free
;
void
CRYPTO_set_mem_functions
(
void
*
(
*
m
)(
int
),
void
*
(
*
r
)(
void
*
,
int
),
void
(
*
f
)(
void
*
))
{
if
((
m
==
NULL
)
||
(
r
==
NULL
)
||
(
f
==
NULL
))
return
;
malloc_func
=
m
;
...
...
@@ -139,14 +140,15 @@ void CRYPTO_set_mem_functions(void *(*m)(), void *(*r)(), void (*f)())
free_locked_func
=
f
;
}
void
CRYPTO_set_locked_mem_functions
(
void
*
(
*
m
)(),
void
(
*
f
)())
void
CRYPTO_set_locked_mem_functions
(
void
*
(
*
m
)(
int
),
void
(
*
f
)(
void
*
))
{
if
((
m
==
NULL
)
||
(
f
==
NULL
))
return
;
malloc_locked_func
=
m
;
free_locked_func
=
f
;
}
void
CRYPTO_get_mem_functions
(
void
*
(
**
m
)(),
void
*
(
**
r
)(),
void
(
**
f
)())
void
CRYPTO_get_mem_functions
(
void
*
(
**
m
)(
int
),
void
*
(
**
r
)(
void
*
,
int
),
void
(
**
f
)(
void
*
))
{
if
(
m
!=
NULL
)
*
m
=
malloc_func
;
if
(
r
!=
NULL
)
*
r
=
realloc_func
;
...
...
lib/dns/sec/openssl/stack.c
View file @
4754765c
...
...
@@ -266,7 +266,7 @@ void sk_zero(STACK *st)
st
->
num
=
0
;
}
void
sk_pop_free
(
STACK
*
st
,
void
(
*
func
)())
void
sk_pop_free
(
STACK
*
st
,
void
(
*
func
)(
char
*
))
{
int
i
;
...
...
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