Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/loader/main.c

    rb4cbef1 r19f857a  
    5858#include <errno.h>
    5959#include <async.h>
    60 #include <string.h>
     60#include <str.h>
    6161#include <as.h>
    6262
     
    126126{
    127127        char *buf;
    128         int rc = async_string_receive(&buf, 0, NULL);
     128        int rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, NULL);
    129129       
    130130        if (rc == EOK) {
     
    146146{
    147147        char *buf;
    148         int rc = async_string_receive(&buf, 0, NULL);
     148        int rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, NULL);
    149149       
    150150        if (rc == EOK) {
     
    167167        char *buf;
    168168        size_t buf_size;
    169         int rc = async_string_receive(&buf, 0, &buf_size);
     169        int rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, &buf_size);
    170170       
    171171        if (rc == EOK) {
     
    232232        fdi_node_t *buf;
    233233        size_t buf_size;
    234         int rc = async_data_receive(&buf, 0, 0, sizeof(fdi_node_t), &buf_size);
     234        int rc = async_data_write_accept((void **) &buf, false, 0, 0,
     235            sizeof(fdi_node_t), &buf_size);
    235236       
    236237        if (rc == EOK) {
     
    240241                 * Allocate new filv
    241242                 */
    242                 fdi_node_t **_filv = (fdi_node_t *) malloc((count + 1) * sizeof(fdi_node_t *));
     243                fdi_node_t **_filv = (fdi_node_t **) calloc(count + 1, sizeof(fdi_node_t *));
    243244                if (_filv == NULL) {
    244245                        free(buf);
Note: See TracChangeset for help on using the changeset viewer.