summaryrefslogtreecommitdiff
path: root/userspace/cat.c
diff options
context:
space:
mode:
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);
}