X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fmeta.c;h=73769d9a21438aef8e50be6fa53aa5ca54d40b02;hp=fbd3e26f160b04e2b74721adb960e818ea33c908;hb=107d9c7da5b206425a8e1643a6849ea990f725f8;hpb=3df86ef17bce9f24c3dad79ccc2b17aa6e93ea34 diff --git a/src/meta.c b/src/meta.c index fbd3e26f..73769d9a 100644 --- a/src/meta.c +++ b/src/meta.c @@ -1,6 +1,6 @@ /* meta.c -- handle the meta communication - Copyright (C) 2000-2013 Guus Sliepen , + Copyright (C) 2000-2014 Guus Sliepen , 2000-2005 Ivo Timmermans 2006 Scott Lamb @@ -30,7 +30,7 @@ #include "utils.h" #include "xalloc.h" -bool send_meta_sptps(void *handle, uint8_t type, const char *buffer, size_t length) { +bool send_meta_sptps(void *handle, uint8_t type, const void *buffer, size_t length) { connection_t *c = handle; if(!c) { @@ -80,7 +80,8 @@ void broadcast_meta(connection_t *from, const char *buffer, int length) { send_meta(c, buffer, length); } -bool receive_meta_sptps(void *handle, uint8_t type, const char *data, uint16_t length) { +bool receive_meta_sptps(void *handle, uint8_t type, const void *vdata, uint16_t length) { + const char *data = vdata; connection_t *c = handle; if(!c) {