projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove casts from xmalloc()
[oweals/busybox.git]
/
libbb
/
device_open.c
diff --git
a/libbb/device_open.c
b/libbb/device_open.c
index d34557b5a895253f6f19304ae6da1a8864f09c75..c788b698261af83280668d99db6e40154a4b53ce 100644
(file)
--- a/
libbb/device_open.c
+++ b/
libbb/device_open.c
@@
-20,6
+20,7
@@
int device_open(const char *device, int mode)
m = mode | O_NONBLOCK;
/* Retry up to 5 times */
m = mode | O_NONBLOCK;
/* Retry up to 5 times */
+ /* TODO: explain why it can't be considered insane */
for (f = 0; f < 5; f++)
if ((fd = open(device, m, 0600)) >= 0)
break;
for (f = 0; f < 5; f++)
if ((fd = open(device, m, 0600)) >= 0)
break;