mirror of
https://github.com/tezc/sc.git
synced 2025-02-04 07:13:10 +08:00
sc_sock : fixed freebsd retcode
This commit is contained in:
parent
0f1fac7099
commit
62001ca6fc
@ -1407,7 +1407,7 @@ int sc_sock_poll_add(struct sc_sock_poll *p, struct sc_sock_fd *fdt,
|
||||
int mask = fdt->op | events;
|
||||
|
||||
if ((fdt->op & events) == events) {
|
||||
return SC_SOCK_OK;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (fdt->op == SC_SOCK_NONE) {
|
||||
@ -1606,7 +1606,7 @@ int sc_sock_poll_add(struct sc_sock_poll *p, struct sc_sock_fd *fdt,
|
||||
int index = fdt->index;
|
||||
|
||||
if ((fdt->op & events) == events) {
|
||||
return SC_SOCK_OK;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (fdt->op == SC_SOCK_NONE) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user