diff options
author | Richard Jones <rjones@redhat.com> | 2010-08-25 11:41:17 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-08-26 22:49:50 +0100 |
commit | fb48bd9b198138f9421ba2b72ebcb8f1e89ab374 (patch) | |
tree | 2b0215eee2e1a48796190fcb001ce93c31c6f667 | |
parent | 4edb9db51a11bb9095c05abd4d825cbcff0745ff (diff) | |
download | libguestfs-fb48bd9b198138f9421ba2b72ebcb8f1e89ab374.tar.gz libguestfs-fb48bd9b198138f9421ba2b72ebcb8f1e89ab374.tar.xz libguestfs-fb48bd9b198138f9421ba2b72ebcb8f1e89ab374.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.
(cherry picked from commit 27ef6f9171127afd248f38d280cf3d0eae51fdaf)
-rw-r--r-- | fish/rc_protocol.x | 4 | ||||
-rwxr-xr-x | src/generator.ml | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/fish/rc_protocol.x b/fish/rc_protocol.x index 9d8f0e9f..fa99a5e9 100644 --- a/fish/rc_protocol.x +++ b/fish/rc_protocol.x @@ -16,7 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -typedef string str<>; +typedef string guestfish_str<>; struct guestfish_hello { /* Client and server version strings must match exactly. We change @@ -27,7 +27,7 @@ struct guestfish_hello { struct guestfish_call { string cmd<>; - str args<>; + guestfish_str args<>; bool exit_on_error; }; diff --git a/src/generator.ml b/src/generator.ml index 6a43c94c..b31b3c9f 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -5684,7 +5684,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. *) @@ -5719,8 +5719,8 @@ and generate_xdr () = function | Pathname n | Device n | Dev_or_Path n | String 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 @@ -5752,7 +5752,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; @@ -5764,7 +5764,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; |