summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-11 16:17:41 +0200
committerJim Meyering <meyering@redhat.com>2009-08-13 14:45:34 +0200
commitd70eb3c45bc93f9e9c7ba735e7209d0ede0e505b (patch)
treeeb2ef1637a301f4842c25370f7ae1706679941b0 /src
parent84fc760439e82e6b3616abd0d1f9bd7d7eb01ec0 (diff)
downloadlibguestfs-d70eb3c45bc93f9e9c7ba735e7209d0ede0e505b.tar.gz
libguestfs-d70eb3c45bc93f9e9c7ba735e7209d0ede0e505b.tar.xz
libguestfs-d70eb3c45bc93f9e9c7ba735e7209d0ede0e505b.zip
generator.ml: move String/Device decls "down" to definition
Diffstat (limited to 'src')
-rwxr-xr-xsrc/generator.ml10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/generator.ml b/src/generator.ml
index 8892de5d..49fd3ce8 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;