YARN-9319. Fix compilation issue of handling typedef an existing name by gcc compiler. (Zhankun Tang via wangda)
Change-Id: Ie8293cc5b710ff355fb6a1ea7201be53ed0385bf
This commit is contained in:
parent
6c4ab0312b
commit
b17a2602d1
@ -82,7 +82,7 @@ cleanup:
|
||||
}
|
||||
|
||||
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();
|
||||
|
@ -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);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user