diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/modules/devices/devices-module.c b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/modules/devices/devices-module.c index 9df6662cc7716..4063baeaeca9f 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/modules/devices/devices-module.c +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/modules/devices/devices-module.c @@ -82,7 +82,7 @@ static int is_block_device(const char* value) { } static int internal_handle_devices_request( - update_cgroups_parameters_function update_cgroups_parameters_func_p, + update_cgroups_param_function update_cgroups_parameters_func_p, char** deny_devices_number_tokens, char** allow_devices_number_tokens, const char* container_id) { @@ -196,7 +196,7 @@ void reload_devices_configuration() { * --allowed_devices 8:32,8:48,243:2 \ * --container_id container_x_y */ -int handle_devices_request(update_cgroups_parameters_function func, +int handle_devices_request(update_cgroups_param_function func, const char* module_name, int module_argc, char** module_argv) { if (!cfg_section) { reload_devices_configuration(); diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/modules/devices/devices-module.h b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/modules/devices/devices-module.h index c5d67851b8331..552d070cd4416 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/modules/devices/devices-module.h +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/modules/devices/devices-module.h @@ -28,13 +28,13 @@ #define DEVICES_MODULE_SECTION_NAME "devices" // For unit test stubbing -typedef int (*update_cgroups_parameters_function)(const char*, const char*, +typedef int (*update_cgroups_param_function)(const char*, const char*, const char*, const char*); /** * Handle devices requests */ -int handle_devices_request(update_cgroups_parameters_function func, +int handle_devices_request(update_cgroups_param_function func, const char* module_name, int module_argc, char** module_argv); /**