projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use void pointers for opaque data blobs in the SPTPS code.
[tinc]
/
src
/
meta.c
diff --git
a/src/meta.c
b/src/meta.c
index
fbd3e26
..
73769d9
100644
(file)
--- a/
src/meta.c
+++ b/
src/meta.c
@@
-1,6
+1,6
@@
/*
meta.c -- handle the meta communication
/*
meta.c -- handle the meta communication
- Copyright (C) 2000-201
3
Guus Sliepen <guus@tinc-vpn.org>,
+ Copyright (C) 2000-201
4
Guus Sliepen <guus@tinc-vpn.org>,
2000-2005 Ivo Timmermans
2006 Scott Lamb <slamb@slamb.org>
2000-2005 Ivo Timmermans
2006 Scott Lamb <slamb@slamb.org>
@@
-30,7
+30,7
@@
#include "utils.h"
#include "xalloc.h"
#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) {
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);
}
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) {
connection_t *c = handle;
if(!c) {