Fix sparse warnings and add an extra sprinkling of const.
[oweals/tinc.git] / src / net_setup.c
index cc6ef68063c885ebb738c4a201cbc0e9fad3e3b7..f18e3bfe46896d6a4d29d4d0ff308c6d9805441e 100644 (file)
@@ -144,7 +144,7 @@ bool read_rsa_public_key(connection_t *c) {
        return false;
 }
 
-bool read_rsa_private_key(void) {
+static bool read_rsa_private_key(void) {
        FILE *fp;
        char *fname, *key, *pubkey;
        struct stat s;
@@ -267,7 +267,7 @@ void load_all_subnets(void) {
 /*
   Configure node_t myself and set up the local sockets (listen only)
 */
-bool setup_myself(void) {
+static bool setup_myself(void) {
        config_t *cfg;
        subnet_t *subnet;
        char *name, *hostname, *mode, *afname, *cipher, *digest;