From: Joseph Sutton Date: Sun, 29 Oct 2023 22:08:49 +0000 (+1300) Subject: librpc:ndr: Increase size of ‘libndr_flags’ type to 64 bits X-Git-Tag: talloc-2.4.2~909 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c75be6c326119a64e95513b3bad3f78522f4587a;p=thirdparty%2Fsamba.git librpc:ndr: Increase size of ‘libndr_flags’ type to 64 bits This gives us thirty‐two new LIBNDR_ flags to play with. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/librpc/ndr/libndr.h b/librpc/ndr/libndr.h index 8cfd05284e4..b0596039526 100644 --- a/librpc/ndr/libndr.h +++ b/librpc/ndr/libndr.h @@ -52,9 +52,9 @@ struct ndr_compression_state; * If you’re considering changing the size of this type, see also * $scalar_alignment in pidl/lib/Parse/Pidl/NDR.pm. */ -typedef uint32_t libndr_flags; -#define PRI_LIBNDR_FLAGS PRIx32 -#define PRI_LIBNDR_FLAGS_DECIMAL PRIu32 +typedef uint64_t libndr_flags; +#define PRI_LIBNDR_FLAGS PRIx64 +#define PRI_LIBNDR_FLAGS_DECIMAL PRIu64 /* * If you’re considering changing the size of this type, see also diff --git a/pidl/lib/Parse/Pidl/NDR.pm b/pidl/lib/Parse/Pidl/NDR.pm index 56597df4187..48fc2cb20c8 100644 --- a/pidl/lib/Parse/Pidl/NDR.pm +++ b/pidl/lib/Parse/Pidl/NDR.pm @@ -84,7 +84,7 @@ my $scalar_alignment = { 'dnsp_name' => 1, 'dnsp_string' => 1, 'HRESULT' => 4, - 'libndr_flags' => 4, + 'libndr_flags' => 8, 'ndr_flags_type' => 4, };