summaryrefslogtreecommitdiff
path: root/sysfile.c
diff options
context:
space:
mode:
authorrsc <rsc>2006-09-06 19:08:14 +0000
committerrsc <rsc>2006-09-06 19:08:14 +0000
commit0cfc7290e8307b66ade6d5eb736c89cc4062c302 (patch)
tree592ad149f605717dfa0162d75da0af050a9c53e4 /sysfile.c
parentdb8fb62e4d599f4e08a3b6420e42b2445e8d7fe3 (diff)
downloadxv6-labs-0cfc7290e8307b66ade6d5eb736c89cc4062c302.tar.gz
xv6-labs-0cfc7290e8307b66ade6d5eb736c89cc4062c302.tar.bz2
xv6-labs-0cfc7290e8307b66ade6d5eb736c89cc4062c302.zip
wrap long lines
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;