mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
TODO item for later.
Doxygen fixes and lint fix. git-svn-id: file:///svn/unbound/trunk@147 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
e4d39152b3
commit
1dca586a28
6 changed files with 10 additions and 8 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
AC_PREREQ(2.57)
|
AC_PREREQ(2.57)
|
||||||
|
|
||||||
AC_INIT(unbound, 0.0, wouter@nlnetlabs.nl, unbound)
|
AC_INIT(unbound, 0.1, wouter@nlnetlabs.nl, unbound)
|
||||||
|
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
AC_AIX
|
AC_AIX
|
||||||
|
|
|
||||||
2
doc/TODO
Normal file
2
doc/TODO
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
TODO items.
|
||||||
|
o use real entropy to make random (ID, port) numbers more random.
|
||||||
|
|
@ -175,11 +175,8 @@ cd unbound || error_cleanup "Unbound not exported correctly from SVN"
|
||||||
info "Adding libtool utils (libtoolize)."
|
info "Adding libtool utils (libtoolize)."
|
||||||
libtoolize -c || error_cleanup "libtoolize failed"
|
libtoolize -c || error_cleanup "libtoolize failed"
|
||||||
|
|
||||||
info "Building configure script (autoconf)."
|
info "Building configure script (autoreconf)."
|
||||||
autoconf || error_cleanup "Autoconf failed."
|
autoreconf || error_cleanup "Autoconf failed."
|
||||||
|
|
||||||
info "Building config.h.in (autoheader)."
|
|
||||||
autoheader || error_cleanup "Autoheader failed."
|
|
||||||
|
|
||||||
rm -r autom4te* || error_cleanup "Failed to remove autoconf cache directory."
|
rm -r autom4te* || error_cleanup "Failed to remove autoconf cache directory."
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@
|
||||||
#include "util/locks.h"
|
#include "util/locks.h"
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
|
/** block all signals, masks them away. */
|
||||||
void
|
void
|
||||||
ub_thread_blocksigs()
|
ub_thread_blocksigs()
|
||||||
{
|
{
|
||||||
|
|
@ -66,6 +67,7 @@ ub_thread_blocksigs()
|
||||||
#endif /* HAVE_PTHREAD */
|
#endif /* HAVE_PTHREAD */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** unblock one signal, so we can catch it. */
|
||||||
void ub_thread_sig_unblock(int sig)
|
void ub_thread_sig_unblock(int sig)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_PTHREAD
|
#ifdef HAVE_PTHREAD
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ log_vmsg(const char* type, const char *format, va_list args)
|
||||||
vsnprintf(message, sizeof(message), format, args);
|
vsnprintf(message, sizeof(message), format, args);
|
||||||
fprintf(logfile, "[%d] %s[%d:%x] %s: %s\n",
|
fprintf(logfile, "[%d] %s[%d:%x] %s: %s\n",
|
||||||
(int)time(NULL), ident, (int)getpid(),
|
(int)time(NULL), ident, (int)getpid(),
|
||||||
(int)ub_thread_self(),
|
(unsigned int)ub_thread_self(),
|
||||||
type, message);
|
type, message);
|
||||||
fflush(logfile);
|
fflush(logfile);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,8 @@ void *event_init(void)
|
||||||
if((int)FD_SETSIZE < base->capfd)
|
if((int)FD_SETSIZE < base->capfd)
|
||||||
base->capfd = (int)FD_SETSIZE;
|
base->capfd = (int)FD_SETSIZE;
|
||||||
#endif
|
#endif
|
||||||
base->fds = (struct event**)calloc(base->capfd, sizeof(struct event*));
|
base->fds = (struct event**)calloc((size_t)base->capfd,
|
||||||
|
sizeof(struct event*));
|
||||||
if(!base->fds) {
|
if(!base->fds) {
|
||||||
event_base_free(base);
|
event_base_free(base);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue