summaryrefslogtreecommitdiff
path: root/userspace/cat.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-08-18 20:59:42 +0200
committerMiguel <m.i@gmx.at>2018-08-18 20:59:42 +0200
commit49fa99cfe6daff2d1f6aff6a6a228563b3b3971b (patch)
tree1e29ade63d3fb78a3b23c7bd3ffa797563b793ab /userspace/cat.c
parentd79936c151c0fcb1e3931188acac419251ee27f8 (diff)
adapt few userspace progs to new syscalls
Diffstat (limited to 'userspace/cat.c')
-rw-r--r--userspace/cat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/userspace/cat.c b/userspace/cat.c
index 688ebcc..800a14b 100644
--- a/userspace/cat.c
+++ b/userspace/cat.c
@@ -7,7 +7,7 @@ int main()
printf("-- read from stderr byte by byte --\n");
- while(has_data_waiting(2)){
+ while(_poll(2)){
fread(&c,1,1,stderr);
printf("%c",c);
}