Skip to content

Commit 902fcdc

Browse files
ekoopspoiana
authored andcommitted
refactor(userspace/libsinsp): use references in copy_ipv6_address()
Signed-off-by: Leonardo Di Giovanna <[email protected]>
1 parent 24539f5 commit 902fcdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

userspace/libsinsp/thread_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ limitations under the License.
3030

3131
extern sinsp_evttables g_infotables;
3232

33-
static void copy_ipv6_address(uint32_t* dest, uint32_t* src) {
33+
static void copy_ipv6_address(uint32_t (&dest)[4], const uint32_t (&src)[4]) {
3434
dest[0] = src[0];
3535
dest[1] = src[1];
3636
dest[2] = src[2];

0 commit comments

Comments
 (0)