Changeset 70253688 in mainline for uspace/srv/net/tcp/sock.c
- Timestamp:
- 2012-09-07T08:12:05Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e0c836e8
- Parents:
- 131d9a4 (diff), 8cf4823 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/sock.c
r131d9a4 r70253688 114 114 *rsock = NULL; 115 115 116 sock = calloc( sizeof(tcp_sockdata_t), 1);116 sock = calloc(1, sizeof(tcp_sockdata_t)); 117 117 if (sock == NULL) 118 118 return ENOMEM; … … 277 277 278 278 socket->backlog = backlog; 279 socket->lconn = calloc( sizeof(tcp_conn_t *), backlog);279 socket->lconn = calloc(backlog, sizeof(tcp_conn_t *)); 280 280 if (socket->lconn == NULL) { 281 281 fibril_mutex_unlock(&socket->lock); … … 293 293 for (i = 0; i < backlog; i++) { 294 294 295 lconn = calloc( sizeof(tcp_sock_lconn_t), 1);295 lconn = calloc(1, sizeof(tcp_sock_lconn_t)); 296 296 if (lconn == NULL) { 297 297 /* XXX Clean up */
Note:
See TracChangeset
for help on using the changeset viewer.