Add semicolons to XDR code

This ensures that the documented XDR code compiles using
rpcgen.
This commit is contained in:
Stefan Tatschner
2016-02-23 12:39:43 +01:00
parent 2a4b5025a5
commit 7c4f1597e2
+13 -13
View File
@@ -438,14 +438,14 @@ XDR
string ClientVersion<64>; string ClientVersion<64>;
Folder Folders<1000000>; Folder Folders<1000000>;
Option Options<64>; Option Options<64>;
} };
struct Folder { struct Folder {
string ID<256>; string ID<256>;
Device Devices<1000000>; Device Devices<1000000>;
unsigned int Flags; unsigned int Flags;
Option Options<64>; Option Options<64>;
} };
struct Device { struct Device {
opaque ID<32>; opaque ID<32>;
@@ -456,12 +456,12 @@ XDR
hyper MaxLocalVersion; hyper MaxLocalVersion;
unsigned int Flags; unsigned int Flags;
Option Options<64>; Option Options<64>;
} };
struct Option { struct Option {
string Key<64>; string Key<64>;
string Value<1024>; string Value<1024>;
} };
Index (Type = 1) and Index Update (Type = 6) Index (Type = 1) and Index Update (Type = 6)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -673,7 +673,7 @@ XDR
FileInfo Files<1000000>; FileInfo Files<1000000>;
unsigned int Flags; unsigned int Flags;
Option Options<64>; Option Options<64>;
} };
struct FileInfo { struct FileInfo {
string Name<8192>; string Name<8192>;
@@ -682,21 +682,21 @@ XDR
Vector Version; Vector Version;
hyper LocalVersion; hyper LocalVersion;
BlockInfo Blocks<1000000>; BlockInfo Blocks<1000000>;
} };
struct Vector { struct Vector {
Counter Counters<> Counter Counters<>;
} };
struct Counter { struct Counter {
unsigned hyper ID unsigned hyper ID;
unsigned hyper Value unsigned hyper Value;
} };
struct BlockInfo { struct BlockInfo {
unsigned int Size; unsigned int Size;
opaque Hash<64>; opaque Hash<64>;
} };
Request (Type = 2) Request (Type = 2)
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
@@ -777,7 +777,7 @@ XDR
opaque Hash<64>; opaque Hash<64>;
unsigned int Flags; unsigned int Flags;
Option Options<64>; Option Options<64>;
} };
Response (Type = 3) Response (Type = 3)
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~