summaryrefslogtreecommitdiff
path: root/sysfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysfile.c')
-rw-r--r--sysfile.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sysfile.c b/sysfile.c
index ea75a41..be09c43 100644
--- a/sysfile.c
+++ b/sysfile.c
@@ -58,7 +58,9 @@ sys_write(void)
uint addr;
struct proc *p = curproc[cpu()];
- if(fetcharg(0, &fd) < 0 || fetcharg(1, &addr) < 0 || fetcharg(2, &n) < 0)
+ if(fetcharg(0, &fd) < 0 ||
+ fetcharg(1, &addr) < 0 ||
+ fetcharg(2, &n) < 0)
return -1;
if(fd < 0 || fd >= NOFILE)
return -1;
@@ -78,7 +80,9 @@ sys_read(void)
uint addr;
struct proc *p = curproc[cpu()];
- if(fetcharg(0, &fd) < 0 || fetcharg(1, &addr) < 0 || fetcharg(2, &n) < 0)
+ if(fetcharg(0, &fd) < 0 ||
+ fetcharg(1, &addr) < 0 ||
+ fetcharg(2, &n) < 0)
return -1;
if(fd < 0 || fd >= NOFILE)
return -1;