From: Richard Jones Date: Wed, 19 May 2010 11:25:03 +0000 (+0100) Subject: generator: Some String parameters should be OptString (RHBZ#501894). X-Git-Tag: 1.2.8~5 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=a51433257723984ad313c631ea5b16dc0977fe2b;p=libguestfs.git generator: Some String parameters should be OptString (RHBZ#501894). I haven't checked the list of functions exhaustively, but these are the obvious ones. (cherry picked from commit e715451fae0ba738973af98a4e506b6c5564626a) --- diff --git a/src/generator.ml b/src/generator.ml index 986b0c5..fbb992a 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -572,7 +572,7 @@ The first character of C string must be a C<-> (dash). C can be NULL."); - ("set_qemu", (RErr, [String "qemu"]), -1, [FishAlias "qemu"], + ("set_qemu", (RErr, [OptString "qemu"]), -1, [FishAlias "qemu"], [], "set the qemu binary", "\ @@ -604,7 +604,7 @@ Return the current qemu binary. This is always non-NULL. If it wasn't set already, then this will return the default qemu binary name."); - ("set_path", (RErr, [String "searchpath"]), -1, [FishAlias "path"], + ("set_path", (RErr, [OptString "searchpath"]), -1, [FishAlias "path"], [], "set the search path", "\