Kaynağa Gözat

adding a missing 'const' qualifier

Stasik0 9 yıl önce
ebeveyn
işleme
7e910561a7
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      examples/server_datasource.c

+ 1 - 1
examples/server_datasource.c

@@ -23,7 +23,7 @@ static void stopHandler(int sign) {
     running = 0;
 }
 
-static UA_StatusCode readInteger(void *handle, UA_NodeId nodeid, UA_Boolean sourceTimeStamp, const UA_NumericRange *range, UA_DataValue *dataValue) {
+static UA_StatusCode readInteger(void *handle, const UA_NodeId nodeid, UA_Boolean sourceTimeStamp, const UA_NumericRange *range, UA_DataValue *dataValue) {
     dataValue->hasValue = UA_TRUE;
     UA_Variant_setScalarCopy(&dataValue->value, (UA_UInt32*)handle, &UA_TYPES[UA_TYPES_INT32]);
     //note that this is only possible if the identifier is a string - but we are sure to have one here