Fix all warnings when compiling with -Wall -W -pedantic.
[tinc] / src / protocol.c
index f43fccd..4f74d3b 100644 (file)
@@ -35,7 +35,7 @@ bool strictsubnets = false;
 
 static bool (*request_handlers[])(connection_t *) = {
        id_h, metakey_h, challenge_h, chal_reply_h, ack_h,
-       status_h, error_h, termreq_h,
+       NULL, NULL, NULL,
        ping_h, pong_h,
        add_subnet_h, del_subnet_h,
        add_edge_h, del_edge_h,
@@ -193,7 +193,7 @@ void exit_requests(void) {
 }
 
 bool seen_request(char *request) {
-       past_request_t *new, p = {};
+       past_request_t *new, p = {0};
 
        p.request = request;