File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ namespace mbed {
79
79
void process_mac(mac_address_t);
80
80
81
81
// compile just fine
82
- uint8_t* invalid_value = NULL;
82
+ uint8_t * invalid_value = NULL;
83
83
process_mac(invalid_value);
84
84
85
85
@@ -88,7 +88,7 @@ namespace mbed {
88
88
void process_mac(mac_address_t);
89
89
90
90
// compilation error
91
- uint8_t* invalid_value = NULL;
91
+ uint8_t * invalid_value = NULL;
92
92
process_mac(invalid_value);
93
93
94
94
// compilation ok
@@ -103,13 +103,13 @@ namespace mbed {
103
103
const uint8_t options_tag[OPTIONS_TAG_SIZE];
104
104
105
105
struct parsed_value_t {
106
- uint8_t* header;
107
- uint8_t* options;
108
- uint8_t* payload;
106
+ uint8_t * header;
107
+ uint8_t * options;
108
+ uint8_t * payload;
109
109
size_t payload_size;
110
110
}
111
111
112
- parsed_value_t parse(uint8_t* buffer, size_t buffer_size) {
112
+ parsed_value_t parse(uint8_t * buffer, size_t buffer_size) {
113
113
parsed_value_t parsed_value { 0 };
114
114
115
115
if (buffer != NULL && buffer_size <= MINIMAL_BUFFER_SIZE) {
@@ -139,7 +139,7 @@ namespace mbed {
139
139
Span<uint8_t> payload;
140
140
}
141
141
142
- parsed_value_t parse(Span<uint8_t> buffer) {
142
+ parsed_value_t parse(const Span<uint8_t> & buffer) {
143
143
parsed_value_t parsed_value;
144
144
145
145
if (buffer.size() <= MINIMAL_BUFFER_SIZE) {
You can’t perform that action at this time.
0 commit comments