git://git.jankratochvil.net
/
udpgate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
398fc84
)
Fixed socket(2) call compatibility to specify also IPPROTO_UDP.
author
short
<>
Sun, 23 May 2004 19:54:48 +0000
(19:54 +0000)
committer
short
<>
Sun, 23 May 2004 19:54:48 +0000
(19:54 +0000)
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
2e755fe
..
545f1d1
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-451,8
+451,8
@@
int sock;
if (!sock_gsource_new())
return FALSE;
- if (-1==(sock=socket(AF_INET,SOCK_DGRAM,
0
))) {
- g_warning("socket(AF_INET,SOCK_DGRAM): %m");
+ if (-1==(sock=socket(AF_INET,SOCK_DGRAM,
IPPROTO_UDP
))) {
+ g_warning("socket(AF_INET,SOCK_DGRAM
,IPPROTO_UDP
): %m");
return NULL;
}
if (ioctl(sock,FIONBIO,&oneul)) { /* non-blocking mode */