Changes in kernel/generic/src/ipc/ops/datawrite.c [a53ed3a:63e27ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ops/datawrite.c
ra53ed3a r63e27ef 41 41 #include <config.h> 42 42 43 static errno_t request_preprocess(call_t *call, phone_t *phone)43 static int request_preprocess(call_t *call, phone_t *phone) 44 44 { 45 45 uintptr_t src = IPC_GET_ARG1(call->data); … … 57 57 58 58 call->buffer = (uint8_t *) malloc(size, 0); 59 errno_t rc = copy_from_uspace(call->buffer, (void *) src, size);60 if (rc != EOK) {59 int rc = copy_from_uspace(call->buffer, (void *) src, size); 60 if (rc != 0) { 61 61 /* 62 62 * call->buffer will be cleaned up in ipc_call_free() at the … … 69 69 } 70 70 71 static errno_t answer_preprocess(call_t *answer, ipc_data_t *olddata)71 static int answer_preprocess(call_t *answer, ipc_data_t *olddata) 72 72 { 73 73 assert(answer->buffer); … … 80 80 81 81 if (size <= max_size) { 82 errno_t rc = copy_to_uspace((void *) dst,82 int rc = copy_to_uspace((void *) dst, 83 83 answer->buffer, size); 84 84 if (rc)
Note:
See TracChangeset
for help on using the changeset viewer.