summarylogtreecommitdiffstats
path: root/fix-incompatible-pointers.patch
blob: 4d681ccb2013aec305b0c874ac0693901641a9d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/vtunerc.c
+++ b/vtunerc.c
@@ -209,7 +209,7 @@ typedef struct discover_worker_data {
   unsigned short port;
 } discover_worker_data_t;
 
-int *discover_worker(void *d) {
+void *discover_worker(void *d) {
   discover_worker_data_t* data = (discover_worker_data_t*)d;
 
   INFO(MSG_MAIN, "starting discover thread\n");
--- a/vtunerd-service.c
+++ b/vtunerd-service.c
@@ -37,7 +37,7 @@ int init_vtuner_service(char *ip, unsign
 
 	if( ip && strlen(ip) ) {
 		unsigned long nip;
-  		inet_aton(ip, &nip);
+		int inet_aton(const char *ip, struct in_addr *nip);
 		if( nip )
 			listen_ip = ntohl(nip);
 	}