Simplified RR, cleanup stream function params
This commit is contained in:
@@ -1061,7 +1061,7 @@ DEFINE_SYSCALL (sys_stream_write) {
|
||||
if (stream_resource == NULL)
|
||||
return SYSRESULT (-ST_NOT_FOUND);
|
||||
|
||||
proc_stream_write (proc, &stream_resource->u.stream, rctx, buffer, buffer_size);
|
||||
proc_stream_write (&stream_resource->u.stream, buffer, buffer_size);
|
||||
|
||||
return SYSRESULT (ST_OK);
|
||||
}
|
||||
@@ -1094,7 +1094,7 @@ DEFINE_SYSCALL (sys_stream_read) {
|
||||
if (stream_resource == NULL)
|
||||
return SYSRESULT (-ST_NOT_FOUND);
|
||||
|
||||
return SYSRESULT (proc_stream_read (proc, &stream_resource->u.stream, rctx, buffer, buffer_size));
|
||||
return SYSRESULT (proc_stream_read (&stream_resource->u.stream, buffer, buffer_size));
|
||||
}
|
||||
|
||||
static syscall_handler_func_t handler_table[] = {
|
||||
|
||||
Reference in New Issue
Block a user