From 722ff7a4bc034a8fe078d766a30589c07b8bd870 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 17 Aug 2009 12:26:58 +0100 Subject: [PATCH] java: Small fix to Java bindings. Missing declaration of local variable 'i'. --- src/generator.ml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/generator.ml b/src/generator.ml index 691cf60..ad4c0cb 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -8588,7 +8588,10 @@ Java_com_redhat_et_libguestfs_GuestFS__1close | RErr | RBool _ | RInt _ | RInt64 _ | RConstString _ | RConstOptString _ | RString _ | RBufferOut _ | RStruct _ | RHashtable _ -> false) || - List.exists (function StringList _ -> true | _ -> false) (snd style) in + List.exists (function + | StringList _ -> true + | DeviceList _ -> true + | _ -> false) (snd style) in if needs_i then pr " int i;\n"; -- 1.8.3.1