Changes in uspace/srv/loader/main.c [19f857a:b4cbef1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/loader/main.c
r19f857a rb4cbef1 58 58 #include <errno.h> 59 59 #include <async.h> 60 #include <str .h>60 #include <string.h> 61 61 #include <as.h> 62 62 … … 126 126 { 127 127 char *buf; 128 int rc = async_ data_write_accept((void **) &buf, true, 0, 0, 0, NULL);128 int rc = async_string_receive(&buf, 0, NULL); 129 129 130 130 if (rc == EOK) { … … 146 146 { 147 147 char *buf; 148 int rc = async_ data_write_accept((void **) &buf, true, 0, 0, 0, NULL);148 int rc = async_string_receive(&buf, 0, NULL); 149 149 150 150 if (rc == EOK) { … … 167 167 char *buf; 168 168 size_t buf_size; 169 int rc = async_ data_write_accept((void **) &buf, true, 0, 0, 0, &buf_size);169 int rc = async_string_receive(&buf, 0, &buf_size); 170 170 171 171 if (rc == EOK) { … … 232 232 fdi_node_t *buf; 233 233 size_t buf_size; 234 int rc = async_data_write_accept((void **) &buf, false, 0, 0, 235 sizeof(fdi_node_t), &buf_size); 234 int rc = async_data_receive(&buf, 0, 0, sizeof(fdi_node_t), &buf_size); 236 235 237 236 if (rc == EOK) { … … 241 240 * Allocate new filv 242 241 */ 243 fdi_node_t **_filv = (fdi_node_t * *) calloc(count + 1,sizeof(fdi_node_t *));242 fdi_node_t **_filv = (fdi_node_t *) malloc((count + 1) * sizeof(fdi_node_t *)); 244 243 if (_filv == NULL) { 245 244 free(buf);
Note:
See TracChangeset
for help on using the changeset viewer.