Skip to content

Commit

Permalink
fix var typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrevi committed Aug 3, 2023
1 parent 99f6ba0 commit d434ac6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/ebpf_store_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ extern "C"
typedef HANDLE ebpf_store_key_t;
#else
typedef HKEY ebpf_store_key_t;
extern ebpf_store_key_t ebpf_store_root_key_t;
extern ebpf_store_key_t ebpf_store_root_key;
#endif

/**
Expand Down
2 changes: 1 addition & 1 deletion libs/api_common/store_helper_internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
ebpf_store_key_t root_registry_key_current_user = HKEY_CURRENT_USER;
ebpf_store_key_t root_registry_key_local_machine = HKEY_LOCAL_MACHINE;
// TODO: Issue #1231 Change to using HKEY_LOCAL_MACHINE
ebpf_store_key_t ebpf_store_root_key_t = HKEY_CURRENT_USER;
ebpf_store_key_t ebpf_store_root_key = HKEY_CURRENT_USER;

static ebpf_result_t
_open_ebpf_store_key(_Out_ ebpf_store_key_t* store_key)
Expand Down
2 changes: 1 addition & 1 deletion libs/store_helper/ebpf_store_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ _ebpf_store_open_or_create_provider_registry_key(_Out_ ebpf_store_key_t* provide

// Open (or create) root eBPF registry path.
#ifdef USER_MODE
result = ebpf_create_registry_key(ebpf_store_root_key_t, EBPF_ROOT_RELATIVE_PATH, REG_CREATE_FLAGS, &root_key);
result = ebpf_create_registry_key(ebpf_store_root_key, EBPF_ROOT_RELATIVE_PATH, REG_CREATE_FLAGS, &root_key);
#else
result = ebpf_create_registry_key(NULL, EBPF_ROOT_REGISTRY_PATH, REG_CREATE_FLAGS, &root_key);
#endif
Expand Down
2 changes: 1 addition & 1 deletion tests/netebpfext_unit/netebpf_ext_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "netebpf_ext_helper.h"

// TODO: Issue #1231 Change to using HKEY_LOCAL_MACHINE
ebpf_store_key_t ebpf_store_root_key_t = HKEY_CURRENT_USER;
ebpf_store_key_t ebpf_store_root_key = HKEY_CURRENT_USER;
DEVICE_OBJECT* _net_ebpf_ext_driver_device_object;

constexpr uint32_t _test_destination_ipv4_address = 0x01020304;
Expand Down
4 changes: 2 additions & 2 deletions tools/export_program_info/export_program_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define REG_CREATE_FLAGS (KEY_WRITE | DELETE | KEY_READ)
#define REG_OPEN_FLAGS (DELETE | KEY_READ)

extern ebpf_store_key_t ebpf_store_root_key_t;
extern ebpf_store_key_t ebpf_store_root_key;

typedef struct _ebpf_program_section_info_with_count
{
Expand Down Expand Up @@ -84,7 +84,7 @@ clear_all_ebpf_stores()
{
// TODO: Issue #1231 Change to using HKEY_LOCAL_MACHINE
std::cout << "Clearing eBPF store HKEY_CURRENT_USER" << std::endl;
return ebpf_store_clear(ebpf_store_root_key_t);
return ebpf_store_clear(ebpf_store_root_key);
}

void
Expand Down

0 comments on commit d434ac6

Please sign in to comment.