Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4490 → Rev 4491

/trunk/uspace/lib/libc/generic/loader.c
205,13 → 205,13
* @return Zero on success or negative error code.
*
*/
int loader_set_files(loader_t *ldr, fs_node_t *const files[])
int loader_set_files(loader_t *ldr, inode_t *const files[])
{
/*
* Serialize the arguments into a single array. First
* compute size of the buffer needed.
*/
fs_node_t *const *ap = files;
inode_t *const *ap = files;
size_t count = 0;
while (*ap != NULL) {
count++;
218,7 → 218,7
ap++;
}
fs_node_t *files_buf = (fs_node_t *) malloc(count * sizeof(fs_node_t));
inode_t *files_buf = (inode_t *) malloc(count * sizeof(inode_t));
if (files_buf == NULL)
return ENOMEM;
231,7 → 231,7
ipc_call_t answer;
aid_t req = async_send_0(ldr->phone_id, LOADER_SET_FILES, &answer);
ipcarg_t rc = ipc_data_write_start(ldr->phone_id, (void *) files_buf,
count * sizeof(fs_node_t));
count * sizeof(inode_t));
if (rc != EOK) {
async_wait_for(req, NULL);
return rc;