updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / mms_client / mmsclient-0.0.3-fbsd.patch
blob68904d616083cba276a94932f658a3436b81101b
1 --- client.c.orig Sat Dec 29 09:40:48 2001
2 +++ client.c Mon Mar 4 21:42:05 2002
3 @@ -277,12 +277,12 @@
4 int packet_len, command;
5 char data[BUF_SIZE];
7 - if (!get_data (s, &packet_len, 4)) {
8 + if (!get_data (s, (char *)&packet_len, 4)) {
9 printf ("packet_len read failed\n");
10 return 0;
13 - packet_len = get_32 (&packet_len, 0) + 4;
14 + packet_len = get_32 ((unsigned char *)&packet_len, 0) + 4;
16 printf ("command packet detected, len=%d\n",
17 packet_len);
18 @@ -308,7 +308,7 @@
19 int interp_header (uint8_t *header, int header_len) {
21 int i;
22 - int packet_length;
23 + int packet_length = 0;
26 * parse header
27 @@ -416,12 +416,12 @@
29 int packet_len, command;
31 - if (!get_data (s, &packet_len, 4)) {
32 + if (!get_data (s, (char *)&packet_len, 4)) {
33 printf ("packet_len read failed\n");
34 return 0;
37 - packet_len = get_32 (&packet_len, 0) + 4;
38 + packet_len = get_32 ((unsigned char *)&packet_len, 0) + 4;
40 printf ("command packet detected, len=%d\n",
41 packet_len);