Skip to content
Snippets Groups Projects
Commit c8cbf237 authored by phung4's avatar phung4
Browse files

renamed init and fini function names

parent d60c0ad8
No related branches found
No related tags found
No related merge requests found
...@@ -974,7 +974,7 @@ void print_pa_request(struct pa_request* pa_request) ...@@ -974,7 +974,7 @@ void print_pa_request(struct pa_request* pa_request)
* *
* return: success or error of the intialization. * return: success or error of the intialization.
*/ */
void partition_allocator_init() void pa_init()
{ {
int i; int i;
List switch_config_list; List switch_config_list;
...@@ -1027,7 +1027,7 @@ void partition_allocator_init() ...@@ -1027,7 +1027,7 @@ void partition_allocator_init()
/** /**
* destroy all the internal (global) data structs. * destroy all the internal (global) data structs.
*/ */
void partition_allocator_fini() void pa_fini()
{ {
int i; int i;
...@@ -1094,7 +1094,7 @@ int allocate_part(pa_request_t* pa_request, List* results) ...@@ -1094,7 +1094,7 @@ int allocate_part(pa_request_t* pa_request, List* results)
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
partition_allocator_init(); pa_init();
/* /*
ListIterator itr; ListIterator itr;
...@@ -1145,6 +1145,6 @@ int main(int argc, char** argv) ...@@ -1145,6 +1145,6 @@ int main(int argc, char** argv)
delete_pa_request(request); delete_pa_request(request);
partition_allocator_fini(); pa_fini();
return 0; return 0;
} }
...@@ -88,11 +88,11 @@ void print_pa_request(struct pa_request* pa_request); ...@@ -88,11 +88,11 @@ void print_pa_request(struct pa_request* pa_request);
* *
* return: success or error of the intialization. * return: success or error of the intialization.
*/ */
void partition_allocator_init(); void pa_init();
/** /**
* destroy all the internal (global) data structs. * destroy all the internal (global) data structs.
*/ */
void partition_allocator_fini(); void pa_fini();
/** /**
* set the node in the internal configuration as unusable * set the node in the internal configuration as unusable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment