summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--main.c2
-rw-r--r--main.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e839995..32f6d87 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
1SOURCES = $(wildcard *.c) 1SOURCES = $(wildcard *.c)
2DEPS=libtoxcore 2DEPS=libtoxcore
3CC=gcc 3CC=gcc
4CFLAGS=-g -O2 #-std=c99 4CFLAGS=-g #-std=c99
5CFLAGS += $(shell pkg-config --cflags $(DEPS)) 5CFLAGS += $(shell pkg-config --cflags $(DEPS))
6LDFLAGS=-g -pthread -lm -static -lrt 6LDFLAGS=-g -pthread -lm -static -lrt
7LDFLAGS += $(shell pkg-config --libs $(DEPS)) 7LDFLAGS += $(shell pkg-config --libs $(DEPS))
diff --git a/main.c b/main.c
index 3c3a4fb..3979d3d 100644
--- a/main.c
+++ b/main.c
@@ -482,7 +482,7 @@ int handle_frame(protocol_frame *frame)
482 * It checks for basic inconsistiencies and allocates the 482 * It checks for basic inconsistiencies and allocates the
483 * protocol_frame structure. 483 * protocol_frame structure.
484 */ 484 */
485int parse_lossless_packet(void *sender_uc, const uint8_t *data, uint32_t len) 485int parse_lossless_packet(Tox *tox, int32_t friendnumber, const uint8_t *data, uint32_t len, void *sender_uc)
486{ 486{
487 protocol_frame *frame = NULL; 487 protocol_frame *frame = NULL;
488 488
diff --git a/main.h b/main.h
index a3890ca..eeea691 100644
--- a/main.h
+++ b/main.h
@@ -85,7 +85,7 @@ extern int local_port;
85extern int select_nfds; 85extern int select_nfds;
86extern tunnel *by_id; 86extern tunnel *by_id;
87 87
88int parse_lossless_packet(void *sender_uc, const uint8_t *data, uint32_t len); 88int parse_lossless_packet(Tox *tox, int32_t friendnumber, const uint8_t *data, uint32_t len, void *sender_uc);
89tunnel *tunnel_create(int sockfd, int connid, uint32_t friendnumber); 89tunnel *tunnel_create(int sockfd, int connid, uint32_t friendnumber);
90void tunnel_delete(tunnel *t); 90void tunnel_delete(tunnel *t);
91#endif 91#endif