diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-01-02 20:17:59 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-01-02 20:17:59 +0100 |
commit | 7ff15eaca93ef512fb9ef67068032e09d3f7cef3 (patch) | |
tree | 9bba22f34f315744fcb26efcaf49d448237d32bc | |
parent | 13204583cbda4e8cc58bfb7211eb1132b5d364f6 (diff) | |
download | hurd-7ff15eaca93ef512fb9ef67068032e09d3f7cef3.tar.gz hurd-7ff15eaca93ef512fb9ef67068032e09d3f7cef3.tar.bz2 hurd-7ff15eaca93ef512fb9ef67068032e09d3f7cef3.zip |
Fix indentation
-rw-r--r-- | random/random.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/random/random.c b/random/random.c index 828e83af..69176b7d 100644 --- a/random/random.c +++ b/random/random.c @@ -309,30 +309,30 @@ trivfs_S_io_select (struct trivfs_protid *cred, if (*type == 0) return 0; - pthread_mutex_lock (&global_lock); + pthread_mutex_lock (&global_lock); - while (1) - { - /* XXX Before initialization, readable_pool depends on length. */ - int avail = readable_pool (POOLSIZE/2, level); - - if (avail != 0 || *type & SELECT_WRITE) - { - *type = (avail ? SELECT_READ : 0) | (*type & SELECT_WRITE); - pthread_mutex_unlock (&global_lock); - return 0; - } - - ports_interrupt_self_on_port_death (cred, reply); - read_blocked = 1; - - if (pthread_hurd_cond_wait_np (&select_alert, &global_lock)) - { - *type = 0; - pthread_mutex_unlock (&global_lock); - return EINTR; - } - } + while (1) + { + /* XXX Before initialization, readable_pool depends on length. */ + int avail = readable_pool (POOLSIZE/2, level); + + if (avail != 0 || *type & SELECT_WRITE) + { + *type = (avail ? SELECT_READ : 0) | (*type & SELECT_WRITE); + pthread_mutex_unlock (&global_lock); + return 0; + } + + ports_interrupt_self_on_port_death (cred, reply); + read_blocked = 1; + + if (pthread_hurd_cond_wait_np (&select_alert, &global_lock)) + { + *type = 0; + pthread_mutex_unlock (&global_lock); + return EINTR; + } + } } |