Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (3)
libisc: remove unused variable.
· 53d991ed
Gary E. Miller
authored
May 30, 2017
53d991ed
libisc: remove three more unused variables.
· 8e944019
Gary E. Miller
authored
May 30, 2017
8e944019
libisc: remove null dereference
· 87c9ef09
Gary E. Miller
authored
May 30, 2017
87c9ef09
Hide whitespace changes
Inline
Side-by-side
libisc/assertions.c
View file @
87c9ef09
...
...
@@ -79,7 +79,7 @@ isc_assertion_typetotext(isc_assertiontype_t type) {
result
=
"INVARIANT"
;
break
;
default:
result
=
NULL
;
result
=
"(null)"
;
}
return
(
result
);
}
...
...
@@ -95,7 +95,6 @@ default_callback(const char *file, int line, isc_assertiontype_t type,
void
*
tracebuf
[
BACKTRACE_MAXFRAME
];
int
i
,
nframes
=
0
;
const
char
*
logsuffix
=
"."
;
const
char
*
fname
;
isc_result_t
result
;
result
=
isc_backtrace_gettrace
(
tracebuf
,
BACKTRACE_MAXFRAME
,
&
nframes
);
...
...
@@ -106,11 +105,7 @@ default_callback(const char *file, int line, isc_assertiontype_t type,
file
,
line
,
isc_assertion_typetotext
(
type
),
cond
,
logsuffix
);
if
(
result
==
ISC_R_SUCCESS
)
{
for
(
i
=
0
;
i
<
nframes
;
i
++
)
{
unsigned
long
offset
;
fname
=
NULL
;
fprintf
(
stderr
,
"#%d %p in ??
\n
"
,
i
,
tracebuf
[
i
]);
fprintf
(
stderr
,
"#%d %p in ??
\n
"
,
i
,
tracebuf
[
i
]);
}
}
fflush
(
stderr
);
...
...
libisc/backtrace.c
View file @
87c9ef09
...
...
@@ -18,17 +18,6 @@
#include
"isc/result.h"
#include
"isc/util.h"
/*
* Define empty (default) symbol table used in backtrace.c
* If the application wants to have a complete symbol table, it should redefine
* isc__backtrace_symtable with the complete table in some way, and link the
* version of the library not including this definition
* (e.g. libisc-nosymbol.a).
*/
static
const
int
isc__backtrace_nsymbols
=
0
;
static
const
isc_backtrace_symmap_t
isc__backtrace_symtable
[]
=
{
{
NULL
,
""
}
};
#ifdef ISC_PLATFORM_USEBACKTRACE
/*
* Getting a back trace of a running process is tricky and highly platform
...
...