OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make xopen() skip stdin/stdout/stderr, add xopen_stdio() if you want stdout,
[android-x86/external-toybox.git]
/
toys
/
net
/
rfkill.c
diff --git
a/toys/net/rfkill.c
b/toys/net/rfkill.c
index
36fe320
..
56e5768
100644
(file)
--- a/
toys/net/rfkill.c
+++ b/
toys/net/rfkill.c
@@
-80,7
+80,7
@@
void rfkill_main(void)
continue;
sprintf(toybuf, "/sys/class/rfkill/rfkill%u/uevent", rfevent.idx);
- tvar = xopen
(toybuf, O_RDONLY
);
+ tvar = xopen
ro(toybuf
);
while ((line = get_line(tvar))) {
char *s = line;