diff options
| author | Garrett D'Amore <garrett@damore.org> | 2021-12-25 18:01:49 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2021-12-25 18:05:56 -0800 |
| commit | 7b02ddc2d7077439992a10bb69553f89b5ee5903 (patch) | |
| tree | c3c6467330be2b38491f0df061d7016e713b1892 /src/sp/protocol/pair0/pair.c | |
| parent | 6237d268514e1f8aec562052954db22c4540eec3 (diff) | |
| download | nng-7b02ddc2d7077439992a10bb69553f89b5ee5903.tar.gz nng-7b02ddc2d7077439992a10bb69553f89b5ee5903.tar.bz2 nng-7b02ddc2d7077439992a10bb69553f89b5ee5903.zip | |
Socket and context initialization never fails.
This makes these functions entirely bullet proof, and eliminates
yet more error handling cases.
Diffstat (limited to 'src/sp/protocol/pair0/pair.c')
| -rw-r--r-- | src/sp/protocol/pair0/pair.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sp/protocol/pair0/pair.c b/src/sp/protocol/pair0/pair.c index 24c88d36..4abeb16a 100644 --- a/src/sp/protocol/pair0/pair.c +++ b/src/sp/protocol/pair0/pair.c @@ -55,7 +55,7 @@ struct pair0_pipe { nni_aio aio_recv; }; -static int +static void pair0_sock_init(void *arg, nni_sock *sock) { pair0_sock *s = arg; @@ -71,7 +71,6 @@ pair0_sock_init(void *arg, nni_sock *sock) nni_pollable_init(&s->readable); s->p = NULL; - return (0); } static void |
