File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -888,7 +888,7 @@ ATTR_PURE int64_t raw_std_value_as_int64(const struct raw_std_value *value);
888
888
ATTR_PURE bool raw_std_value_is_float64 (const struct raw_std_value * value );
889
889
ATTR_PURE double raw_std_value_as_float64 (const struct raw_std_value * value );
890
890
ATTR_PURE bool raw_std_value_is_string (const struct raw_std_value * value );
891
- ATTR_PURE ATTR_MALLOC char * raw_std_string_dup (const struct raw_std_value * value );
891
+ ATTR_MALLOC char * raw_std_string_dup (const struct raw_std_value * value );
892
892
ATTR_PURE bool raw_std_string_equals (const struct raw_std_value * value , const char * str );
893
893
ATTR_PURE bool raw_std_value_is_uint8array (const struct raw_std_value * value );
894
894
ATTR_PURE const uint8_t * raw_std_value_as_uint8array (const struct raw_std_value * value );
@@ -924,7 +924,7 @@ ATTR_PURE bool raw_std_method_call_response_check(const struct raw_std_value *va
924
924
ATTR_PURE bool raw_std_event_check (const struct raw_std_value * value , size_t buffer_size );
925
925
926
926
ATTR_PURE const struct raw_std_value * raw_std_method_call_get_method (const struct raw_std_value * value );
927
- ATTR_PURE ATTR_MALLOC char * raw_std_method_call_get_method_dup (const struct raw_std_value * value );
927
+ ATTR_MALLOC char * raw_std_method_call_get_method_dup (const struct raw_std_value * value );
928
928
ATTR_PURE const struct raw_std_value * raw_std_method_call_get_arg (const struct raw_std_value * value );
929
929
930
930
#define CONCAT (a , b ) CONCAT_INNER(a, b)
Original file line number Diff line number Diff line change @@ -1860,7 +1860,7 @@ ATTR_PURE bool raw_std_value_is_string(const struct raw_std_value *value) {
1860
1860
return raw_std_value_get_type (value ) == kStdString ;
1861
1861
}
1862
1862
1863
- ATTR_PURE ATTR_MALLOC char * raw_std_string_dup (const struct raw_std_value * value ) {
1863
+ ATTR_MALLOC char * raw_std_string_dup (const struct raw_std_value * value ) {
1864
1864
DEBUG_ASSERT (raw_std_value_is_string (value ));
1865
1865
1866
1866
size_t size = raw_std_value_get_size (value );
@@ -2456,7 +2456,7 @@ ATTR_PURE bool raw_std_method_call_response_check(const struct raw_std_value *va
2456
2456
2457
2457
bool successful = (* (const uint8_t * ) (value )) != 0 ;
2458
2458
2459
- value = (intptr_t ) value + 1 ;
2459
+ value = (void * ) (( intptr_t ) value + ( intptr_t ) 1 ) ;
2460
2460
buffer_size -= 1 ;
2461
2461
2462
2462
if (successful ) {
@@ -2505,7 +2505,7 @@ ATTR_PURE const struct raw_std_value *raw_std_method_call_get_method(const struc
2505
2505
return value ;
2506
2506
}
2507
2507
2508
- ATTR_MALLOC ATTR_PURE char * raw_std_method_call_get_method_dup (const struct raw_std_value * value ) {
2508
+ ATTR_MALLOC char * raw_std_method_call_get_method_dup (const struct raw_std_value * value ) {
2509
2509
DEBUG_ASSERT (raw_std_value_is_string (value ));
2510
2510
return raw_std_string_dup (value );
2511
2511
}
You can’t perform that action at this time.
0 commit comments