projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d9f7fd
)
Style: Always use tab for indentation
author
Denis Kenzior
<denkenz@gmail.com>
Tue, 16 Mar 2010 22:33:50 +0000
(17:33 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Tue, 16 Mar 2010 22:33:50 +0000
(17:33 -0500)
gisi/pep.c
patch
|
blob
|
history
diff --git
a/gisi/pep.c
b/gisi/pep.c
index
5495401
..
ba98173
100644
(file)
--- a/
gisi/pep.c
+++ b/
gisi/pep.c
@@
-85,8
+85,10
@@
GIsiPEP *g_isi_pep_create(GIsiModem *modem, GIsiPEPCallback cb, void *opaque)
fcntl(fd, F_SETFD, FD_CLOEXEC);
fcntl(fd, F_SETFL, O_NONBLOCK|fcntl(fd, F_GETFL));
- if (if_indextoname(ifi, buf) == NULL ||
- setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, buf, IF_NAMESIZE))
+ if (if_indextoname(ifi, buf) == NULL)
+ goto error;
+
+ if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, buf, IF_NAMESIZE) != 0)
goto error;
pep->ready = cb;