libpurple/protocols/zephyr/ZOpenPort.c

branch
release-2.x.y
changeset 35970
4f70b59638a1
parent 35968
3e04feabcbfb
child 35991
e6937e52930b
equal deleted inserted replaced
35968:3e04feabcbfb 35970:4f70b59638a1
20 { 20 {
21 struct sockaddr_in bindin; 21 struct sockaddr_in bindin;
22 socklen_t len; 22 socklen_t len;
23 23
24 (void) ZClosePort(); 24 (void) ZClosePort();
25 memset(&bindin, 0, sizeof(bindir)); 25 memset(&bindin, 0, sizeof(bindin));
26 26
27 if ((__Zephyr_fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { 27 if ((__Zephyr_fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
28 __Zephyr_fd = -1; 28 __Zephyr_fd = -1;
29 return (errno); 29 return (errno);
30 } 30 }

mercurial