From f6468510c662626164d9f0d540b4452fe5e2ccae Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Tue, 26 Jul 2016 12:58:03 +0200 Subject: [PATCH] Adapt MIB compiler to changed function signature of my last commit. Done with patch #9044: SNMP response for failed get operation. --- .../LwipSnmpCodeGeneration/SnmpScalarAggregationNode.cs | 2 +- .../LwipMibCompiler/LwipSnmpCodeGeneration/SnmpScalarNode.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpScalarAggregationNode.cs b/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpScalarAggregationNode.cs index 659acd25..f5c558c5 100644 --- a/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpScalarAggregationNode.cs +++ b/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpScalarAggregationNode.cs @@ -116,7 +116,7 @@ namespace LwipSnmpCodeGeneration FunctionDeclaration getMethodDecl = new FunctionDeclaration(this.GetMethodName, isStatic: true); getMethodDecl.Parameter.Add(instanceType); getMethodDecl.Parameter.Add(new VariableType("value", VariableType.VoidString, "*")); - getMethodDecl.ReturnType = new VariableType(null, LwipDefs.Vt_U16); + getMethodDecl.ReturnType = new VariableType(null, LwipDefs.Vt_S16); if (generateDeclarations) { diff --git a/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpScalarNode.cs b/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpScalarNode.cs index 3298ae9b..b9b2ea81 100644 --- a/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpScalarNode.cs +++ b/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpScalarNode.cs @@ -135,7 +135,7 @@ namespace LwipSnmpCodeGeneration FunctionDeclaration getMethodDecl = new FunctionDeclaration(this.Name + LwipDefs.FnctSuffix_GetValue, isStatic: true); getMethodDecl.Parameter.Add(new VariableType("instance", LwipDefs.Vt_StNodeInstance, "*")); getMethodDecl.Parameter.Add(new VariableType("value", VariableType.VoidString, "*")); - getMethodDecl.ReturnType = new VariableType(null, LwipDefs.Vt_U16); + getMethodDecl.ReturnType = new VariableType(null, LwipDefs.Vt_S16); mibFile.Declarations.Add(getMethodDecl); Function getMethod = Function.FromDeclaration(getMethodDecl);