From: Jim Meyering Date: Tue, 11 Aug 2009 14:17:41 +0000 (+0200) Subject: generator.ml: move String/Device decls "down" to definition X-Git-Tag: 1.0.67~19 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=d70eb3c45bc93f9e9c7ba735e7209d0ede0e505b;p=libguestfs.git generator.ml: move String/Device decls "down" to definition --- diff --git a/src/generator.ml b/src/generator.ml index 8892de5..49fd3ce 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -4736,9 +4736,9 @@ and generate_daemon_actions () = pr " struct guestfs_%s_args args;\n" name; List.iter ( function - | Device n -> pr " const char *%s;\n" n + | Device n | Pathname n - | String n + | String n -> () | OptString n -> pr " char *%s;\n" n | StringList n -> pr " char **%s;\n" n | Bool n -> pr " int %s;\n" n @@ -4760,12 +4760,12 @@ and generate_daemon_actions () = List.iter ( function | Pathname n -> - pr " %s = args.%s;\n" n n; + pr " char *%s = args.%s;\n" n n; pr " ABS_PATH (%s, goto done);\n" n; | Device n -> - pr " %s = args.%s;\n" n n; + pr " char *%s = args.%s;\n" n n; pr " RESOLVE_DEVICE (%s, goto done);" n; - | String n -> pr " %s = args.%s;\n" n n + | String n -> pr " char *%s = args.%s;\n" n n | OptString n -> pr " %s = args.%s ? *args.%s : NULL;\n" n n n | StringList n -> pr " %s = realloc (args.%s.%s_val,\n" n n n;