From 13ac7a473f14ad32beda1fb4be01dc2d0ae6cacf Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Wed, 2 Mar 2011 12:36:10 -0800 Subject: [PATCH] fix build Change-Id: If907795c670fb1ca7ba28bbfd40d21ce51405b7d --- roots.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roots.c b/roots.c index 7520e1e..019764b 100644 --- a/roots.c +++ b/roots.c @@ -91,16 +91,16 @@ void load_volume_table() { device_volumes[num_volumes].fs_type = !is_null(fs_type2) ? strdup(fs_type2) : strdup(fs_type); device_volumes[num_volumes].device = strdup(device); device_volumes[num_volumes].device2 = - (!is_null(device2)) != 0) ? strdup(device2) : NULL; + !is_null(device2) ? strdup(device2) : NULL; device_volumes[num_volumes].fs_type2 = !is_null(fs_type2) ? strdup(fs_type) : NULL; if (!is_null(fs_type2)) { - device_volumes[num_volumes]fs_options2 = dupe_string(fs_options); - device_volumes[num_volumes]fs_options = dupe_string(fs_options2); + device_volumes[num_volumes].fs_options2 = dupe_string(fs_options); + device_volumes[num_volumes].fs_options = dupe_string(fs_options2); } else { - device_volumes[num_volumes]fs_options2 = NULL; - device_volumes[num_volumes]fs_options = dupe_string(fs_options); + device_volumes[num_volumes].fs_options2 = NULL; + device_volumes[num_volumes].fs_options = dupe_string(fs_options); } ++num_volumes; } else {