Changes in uspace/lib/c/generic/iplink.c [50b581d:77ad86c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/iplink.c
r50b581d r77ad86c 49 49 iplink_t **riplink) 50 50 { 51 iplink_t *iplink = NULL; 52 int rc; 53 54 iplink = calloc(1, sizeof(iplink_t)); 51 iplink_t *iplink = calloc(1, sizeof(iplink_t)); 55 52 if (iplink == NULL) 56 53 return ENOMEM; 57 54 58 55 iplink->sess = sess; 59 56 iplink->ev_ops = ev_ops; 60 57 61 58 async_exch_t *exch = async_exchange_begin(sess); 62 63 rc = async_connect_to_me(exch, 0, 0, 0, iplink_cb_conn, iplink);59 60 int rc = async_connect_to_me(exch, 0, 0, 0, iplink_cb_conn, iplink); 64 61 async_exchange_end(exch); 65 62 66 63 if (rc != EOK) 67 64 goto error; 68 65 69 66 *riplink = iplink; 70 67 return EOK; 71 68 72 69 error: 73 70 if (iplink != NULL) 74 71 free(iplink); 75 72 76 73 return rc; 77 74 }
Note:
See TracChangeset
for help on using the changeset viewer.