Fix sparse warnings and add an extra sprinkling of const.

This is more or less the equivalent of Sven-Haegar Koch's fixes in the 1.1
branch.
This commit is contained in:
Guus Sliepen 2011-05-28 23:36:52 +02:00
parent 07ffb1a198
commit 6d08eb1614
35 changed files with 83 additions and 75 deletions

View 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;