File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,18 @@ returncode_t libtocksync_hmac_simple(libtock_hmac_algorithm_t hmac_type,
13
13
14
14
ret = libtock_hmac_set_readonly_allow_key_buffer (key_buffer , key_length );
15
15
if (ret != RETURNCODE_SUCCESS ) return ret ;
16
- defer { libtock_hmac_set_readonly_allow_key_buffer (NULL , 0 ); };
16
+ defer { libtock_hmac_set_readonly_allow_key_buffer (NULL , 0 );
17
+ };
17
18
18
19
ret = libtock_hmac_set_readonly_allow_data_buffer (input_buffer , input_length );
19
20
if (ret != RETURNCODE_SUCCESS ) return ret ;
20
- defer { libtock_hmac_set_readonly_allow_data_buffer (NULL , 0 ); };
21
+ defer { libtock_hmac_set_readonly_allow_data_buffer (NULL , 0 );
22
+ };
21
23
22
24
ret = libtock_hmac_set_readwrite_allow_destination_buffer (hmac_buffer , hmac_length );
23
25
if (ret != RETURNCODE_SUCCESS ) return ret ;
24
- defer { libtock_hmac_set_readwrite_allow_destination_buffer (NULL , 0 ); };
26
+ defer { libtock_hmac_set_readwrite_allow_destination_buffer (NULL , 0 );
27
+ };
25
28
26
29
ret = libtock_hmac_command_run ();
27
30
if (ret != RETURNCODE_SUCCESS ) return ret ;
Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ extern "C" {
5
5
#endif
6
6
7
7
#define __DEFER__ (F , V ) \
8
- auto void F(int* V ## SENTINEL); \
8
+ auto void F(int* V## SENTINEL); \
9
9
[[gnu::cleanup(F)]] int V; \
10
- auto void F(__attribute__ ((unused)) int* V ## SENTINEL)
10
+ auto void F(__attribute__ ((unused)) int* V## SENTINEL)
11
11
12
12
#define defer __DEFER(__COUNTER__)
13
13
#define __DEFER (N ) __DEFER_(N)
14
- #define __DEFER_ (N ) __DEFER__(__DEFER_FUNCTION_ ## N, __DEFER_VARIABLE_ ## N)
14
+ #define __DEFER_ (N ) __DEFER__(__DEFER_FUNCTION_## N, __DEFER_VARIABLE_## N)
15
15
16
16
#ifdef __cplusplus
17
17
}
You can’t perform that action at this time.
0 commit comments