summaryrefslogtreecommitdiff
path: root/community/netbrake/arch-x86_64.patch
blob: 327ffca84891ccf6b5791100ad87d8599751b1f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
diff -wbBur netbrake/libnetbrake.c netbrake.my/libnetbrake.c
--- netbrake/libnetbrake.c	2003-12-04 09:33:00.000000000 +0300
+++ netbrake.my/libnetbrake.c	2007-10-11 13:29:22.000000000 +0400
@@ -236,7 +236,7 @@
 	return retval;
 }
 
-int recv(int s, void *buf, size_t len, int flags)
+ssize_t recv(int s, void *buf, size_t len, int flags)
 {
 	int retval;
 
@@ -245,7 +245,7 @@
 	return retval;
 }
 
-int recvfrom(int s, void *buf, size_t len, int flags,
+ssize_t recvfrom(int s, void *buf, size_t len, int flags,
 	     struct sockaddr *from, socklen_t *fromlen)
 {
 	int retval;
@@ -255,7 +255,7 @@
 	return retval;
 }
 
-int send(int s, const void *msg, size_t len , int flags)
+ssize_t send(int s, const void *msg, size_t len , int flags)
 {
 	int retval;
 
@@ -264,7 +264,7 @@
 	return retval;
 }
 
-int sendto(int s, const void *msg, size_t len, int flags,
+ssize_t sendto(int s, const void *msg, size_t len, int flags,
 	   const struct sockaddr *to, socklen_t tolen)
 {
 	int retval;