From b939d1a0b6b375ea5bae54d83a1cb89eb888c75a Mon Sep 17 00:00:00 2001
From: gcontini <1121667+gcontini@users.noreply.github.com>
Date: 周六, 21 3月 2020 20:57:47 +0800
Subject: [PATCH] update docs

---
 src/library/hw_identifier/ethernet.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/library/hw_identifier/ethernet.cpp b/src/library/hw_identifier/ethernet.cpp
index 1d923e6..55b5197 100644
--- a/src/library/hw_identifier/ethernet.cpp
+++ b/src/library/hw_identifier/ethernet.cpp
@@ -32,7 +32,7 @@
 	}
 
 	for (auto &it : adapters) {
-		unsigned int k, data_len, data_byte;
+		unsigned int k, data_len;
 		array<uint8_t, HW_IDENTIFIER_PROPRIETARY_DATA> identifier;
 		data_len = use_ip ? sizeof(os::OsAdapterInfo::ipv4_address) : sizeof(os::OsAdapterInfo::mac_address);
 
@@ -54,7 +54,7 @@
 
 Ethernet::~Ethernet() {}
 
-LCC_API_IDENTIFICATION_STRATEGY Ethernet::identification_strategy() const {
+LCC_API_HW_IDENTIFICATION_STRATEGY Ethernet::identification_strategy() const {
 	return use_ip ? STRATEGY_IP_ADDRESS : STRATEGY_ETHERNET;
 }
 
@@ -63,7 +63,7 @@
 	FUNCTION_RETURN result = generate_ethernet_pc_id(data, use_ip);
 	vector<HwIdentifier> identifiers;
 	if (result == FUNC_RET_OK) {
-		identifiers.resize(data.size());
+		identifiers.reserve(data.size());
 		for (auto &it : data) {
 			HwIdentifier pc_id;
 			pc_id.set_identification_strategy(identification_strategy());

--
Gitblit v1.9.1