}
}
-bool read_server_config() {
+bool read_server_config(void) {
char *fname;
bool x;
}
}
-bool init_control() {
+bool init_control(void) {
randomize(controlcookie, sizeof controlcookie / 2);
bin2hex(controlcookie, controlcookie, sizeof controlcookie / 2);
controlcookie[sizeof controlcookie - 1] = 0;
return true;
}
-void exit_control() {
+void exit_control(void) {
unlink(controlcookiename);
}
list_free(todo_list);
}
-static void check_reachability() {
+static void check_reachability(void) {
splay_node_t *node, *next;
node_t *n;
char *name;
regenerate_key();
}
-void regenerate_key() {
+void regenerate_key(void) {
if(timeout_initialized(&keyexpire_event)) {
ifdebug(STATUS) logger(LOG_INFO, "Expiring symmetric keys");
event_del(&keyexpire_event);
#include "crypto.h"
-void crypto_init() {
+void crypto_init(void) {
RAND_load_file("/dev/urandom", 1024);
ENGINE_load_builtin_engines();
OpenSSL_add_all_algorithms();
}
-void crypto_exit() {
+void crypto_exit(void) {
EVP_cleanup();
}
static bool mykeyused = false;
-void send_key_changed() {
+void send_key_changed(void) {
splay_node_t *node;
connection_t *c;
static bool cache_mac_valid[2];
static int cache_mac_slot;
-void subnet_cache_flush() {
+void subnet_cache_flush(void) {
cache_ipv4_valid[0] = cache_ipv4_valid[1] = false;
cache_ipv6_valid[0] = cache_ipv6_valid[1] = false;
cache_mac_valid[0] = cache_mac_valid[1] = false;
}
}
-static void free_names() {
+static void free_names(void) {
if (identname) free(identname);
if (netname) free(netname);
if (controlcookiename) free(controlcookiename);
if (confbase) free(confbase);
}
-static bool drop_privs() {
+static bool drop_privs(void) {
#ifdef HAVE_MINGW
if (switchuser) {
logger(LOG_ERR, "%s not supported on this platform", "-U");
}
}
-static void redraw() {
+static void redraw(void) {
erase();
mvprintw(0, 0, "Tinc %-16s Nodes: %4d Sort: %-8s %s", netname, node_list.count, sortname[sortmode], cumulative ? "Cumulative" : "Current");
/* Allocate N bytes of memory dynamically, with error checking. */
void *
-xmalloc (n)
- size_t n;
+xmalloc (size_t n)
{
void *p;
/* 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;
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)