From: Volker Lendecke Date: Wed, 17 Apr 2024 09:24:25 +0000 (+0200) Subject: smbd: Save a few bytes of .text X-Git-Tag: tdb-1.4.11~900 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fba4e66df51e15b1dd8fcf60a18a399e05a7c746;p=thirdparty%2Fsamba.git smbd: Save a few bytes of .text Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb2_negprot.c b/source3/smbd/smb2_negprot.c index d355b87f9d6..f66ec2aa47f 100644 --- a/source3/smbd/smb2_negprot.c +++ b/source3/smbd/smb2_negprot.c @@ -96,7 +96,7 @@ enum protocol_types smbd_smb2_protocol_dialect_match(const uint8_t *indyn, const int dialect_count, uint16_t *dialect) { - struct { + static const struct { enum protocol_types proto; uint16_t dialect; } pd[] = {