From cf3d7def33d7cec37c32fed68d3cc0214bbc6d34 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Wed, 17 Feb 2016 08:14:16 +0100 Subject: [PATCH] Let MIB compiler generate const structs, too (see last commit) --- .../snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpTreeNode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpTreeNode.cs b/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpTreeNode.cs index c5577ef5..52046b6b 100644 --- a/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpTreeNode.cs +++ b/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpTreeNode.cs @@ -119,7 +119,7 @@ namespace LwipSnmpCodeGeneration } VariableDeclaration subnodeArray = new VariableDeclaration( - new VariableType(this.Name + "_subnodes", LwipDefs.Vt_StNode, "*", ConstType.Value, String.Empty), + new VariableType(this.Name + "_subnodes", LwipDefs.Vt_StNode, "*", ConstType.Both, String.Empty), "{\n" + subnodeArrayInitialization + "\n}", isStatic: true);