vlib: allow longer version string 06/37006/2
authorMatthew Smith <mgsmith@netgate.com>
Tue, 23 Aug 2022 15:46:25 +0000 (15:46 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Wed, 24 Aug 2022 15:17:16 +0000 (15:17 +0000)
Type: improvement

When trying to use a version string in a downstream build that appends a
timestamp to the standard version string, compiling fails because the
version string is too long for the version and version_required fields
in vlib_plugin_registration_t. Increase the size of those arrays from 32
to 64 chars.

Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Change-Id: I3632139e5ae7110aa4769359f380ad29522ad4ed

src/vlib/unix/plugin.h

index 2c8a2f2..f353097 100644 (file)
@@ -61,8 +61,8 @@ typedef struct
   CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
   u8 default_disabled : 1;
   u8 deep_bind : 1;
-  const char version[32];
-  const char version_required[32];
+  const char version[64];
+  const char version_required[64];
   const char overrides[256];
   const char *early_init;
   const char *description;