summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-08-25 11:41:17 +0100
committerRichard Jones <rjones@redhat.com>2010-08-25 11:41:17 +0100
commit27ef6f9171127afd248f38d280cf3d0eae51fdaf (patch)
treedd28105a0aa44e06b1b36ac578d76f52d1ec61bb /src
parent6d15d4e7c27477507ba355384a340ce86cec617b (diff)
downloadlibguestfs-27ef6f9171127afd248f38d280cf3d0eae51fdaf.tar.gz
libguestfs-27ef6f9171127afd248f38d280cf3d0eae51fdaf.tar.xz
libguestfs-27ef6f9171127afd248f38d280cf3d0eae51fdaf.zip
Rename global 'xdr_str'.
Two bits of XDR both contained a definition called 'str' which means that 'xdr_str' was being exported globally twice. Because of the linker script this didn't affect us. But it's best to rename this global so that conflicts cannot arise.
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 00caa6a4..c25c8712 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -6213,7 +6213,7 @@ and generate_xdr () =
generate_header CStyle LGPLv2plus;
(* This has to be defined to get around a limitation in Sun's rpcgen. *)
- pr "typedef string str<>;\n";
+ pr "typedef string guestfs_str<>;\n";
pr "\n";
(* Internal structures. *)
@@ -6248,8 +6248,8 @@ and generate_xdr () =
function
| Pathname n | Device n | Dev_or_Path n | String n | Key n ->
pr " string %s<>;\n" n
- | OptString n -> pr " str *%s;\n" n
- | StringList n | DeviceList n -> pr " str %s<>;\n" n
+ | OptString n -> pr " guestfs_str *%s;\n" n
+ | StringList n | DeviceList n -> pr " guestfs_str %s<>;\n" n
| Bool n -> pr " bool %s;\n" n
| Int n -> pr " int %s;\n" n
| Int64 n -> pr " hyper %s;\n" n
@@ -6281,7 +6281,7 @@ and generate_xdr () =
pr "};\n\n"
| RStringList n ->
pr "struct %s_ret {\n" name;
- pr " str %s<>;\n" n;
+ pr " guestfs_str %s<>;\n" n;
pr "};\n\n"
| RStruct (n, typ) ->
pr "struct %s_ret {\n" name;
@@ -6293,7 +6293,7 @@ and generate_xdr () =
pr "};\n\n"
| RHashtable n ->
pr "struct %s_ret {\n" name;
- pr " str %s<>;\n" n;
+ pr " guestfs_str %s<>;\n" n;
pr "};\n\n"
| RBufferOut n ->
pr "struct %s_ret {\n" name;