Преглед изворни кода

Fix parameter differences between definitions and declarations.

Jason Valenzuela пре 6 година
родитељ
комит
6fb10e4f79
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 2 2
      source/src/opener_api.h
  2. 1 1
      source/src/ports/WIN32/networkconfig.c

+ 2 - 2
source/src/opener_api.h

@@ -343,13 +343,13 @@ size_t CalculateIndex(EipUint16 attribute_number);
  *  the service array is not expandable if you insert a service that has
  *  already been defined, the previous service will be replaced
  *
- * @param cip_class_to_add_service pointer to CIP object. (may be also
+ * @param cip_class pointer to CIP object. (may be also
  * instance# 0)
  * @param service_code service code of service to be inserted.
  * @param service_function pointer to function which represents the service.
  * @param service_name name of the service
  */
-void InsertService(const CipClass *const cip_class_to_add_service,
+void InsertService(const CipClass *const cip_class,
                    const EipUint8 service_code,
                    const CipServiceFunction service_function,
                    char *const service_name);

+ 1 - 1
source/src/ports/WIN32/networkconfig.c

@@ -263,7 +263,7 @@ static CipUdint GetIpFromSocketAddress(const SOCKET_ADDRESS *socket_address) {
 
 /* For Doxygen descriptions see opener_api.h. */
 EipStatus IfaceGetMacAddress(const char *iface,
-                             uint8_t *physical_address) {
+                             uint8_t *const physical_address) {
   ULONG iface_idx;
 
   if(kEipStatusOk != DetermineIfaceIndexByString(iface, &iface_idx) ) {