]> git.pld-linux.org Git - packages/pilot-link.git/blob - pilot-link-open.patch
- new
[packages/pilot-link.git] / pilot-link-open.patch
1 --- pilot-link-0.12.2/libpisock/serial.c.pom    2006-10-12 16:21:22.000000000 +0200
2 +++ pilot-link-0.12.2/libpisock/serial.c        2007-08-29 16:31:25.000000000 +0200
3 @@ -286,7 +286,7 @@ pi_serial_connect(pi_socket_t *ps, struc
4                 data->establishrate = data->rate = 57600;
5         }
6  
7 -       if ((err = data->impl.open(ps, pa, addrlen)) < 0)
8 +       if ((err = (data->impl.open)(ps, pa, addrlen)) < 0)
9                 return err;     /* errno already set */
10  
11         ps->raddr       = malloc(addrlen);
12 @@ -362,7 +362,7 @@ pi_serial_bind(pi_socket_t *ps, struct s
13         }
14  
15  begin:
16 -       if ((err = data->impl.open(ps, pa, addrlen)) < 0) {
17 +       if ((err = (data->impl.open)(ps, pa, addrlen)) < 0) {
18                 int     save_errno = errno;
19  #ifdef MAXPATHLEN
20                 char    realport[MAXPATHLEN];
21 --- pilot-link-0.12.2/libpisock/usb.c.pom       2007-02-09 15:26:09.000000000 +0100
22 +++ pilot-link-0.12.2/libpisock/usb.c   2007-08-29 16:23:42.000000000 +0200
23 @@ -267,7 +267,7 @@ pi_usb_connect(pi_socket_t *ps, struct s
24                 data->establishrate = data->rate = 57600;
25         }
26  
27 -       result = data->impl.open(ps, pa, addrlen);
28 +       result = (data->impl.open)(ps, pa, addrlen);
29         if (result < 0)
30                 goto fail;
31  
32 @@ -343,7 +343,7 @@ pi_usb_bind(pi_socket_t *ps, struct sock
33                 data->establishrate = data->rate = 57600;
34         }
35  
36 -       result = data->impl.open(ps, pa, addrlen);
37 +       result = (data->impl.open)(ps, pa, addrlen);
38         if (result < 0)
39                 return result;
40  
41 --- pilot-link-0.12.2/src/pilot-schlep.c.pom    2006-10-12 16:21:21.000000000 +0200
42 +++ pilot-link-0.12.2/src/pilot-schlep.c        2007-08-29 16:44:40.000000000 +0200
43 @@ -38,7 +38,7 @@ static int Fetch(int sd, char *filename)
44                 fd;
45         pi_buffer_t *buffer;
46  
47 -       fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC);
48 +       fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666);
49         if (fd < 0)
50                 return -1;
51  
This page took 0.047313 seconds and 3 git commands to generate.