Add initialization helper for file_handle_union

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2015-01-18 19:06:48 -05:00
parent 302fbdf29e
commit 2695c5c44e
4 changed files with 4 additions and 12 deletions
+1 -4
View File
@@ -230,10 +230,7 @@ static bool unix_socket_alive(const char *fn) {
static int dir_is_mount_point(DIR *d, const char *subdir) {
union file_handle_union h = {
.handle.handle_bytes = MAX_HANDLE_SZ
};
union file_handle_union h = FILE_HANDLE_INIT;
int mount_id_parent, mount_id;
int r_p, r;