few random readability enhansements. No code changes

This commit is contained in:
Denis Vlasenko
2006-09-08 17:31:55 +00:00
parent 9a9edf200b
commit bd8f43dbab
3 changed files with 10 additions and 8 deletions

View File

@@ -20,6 +20,7 @@ int device_open(const char *device, int mode)
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;