|
From: Steve D. <ste...@us...> - 2009-01-16 22:51:31
|
Update of /cvsroot/evms/evms2/engine/plugins/replace In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv13611 Modified Files: replace.c Log Message: Cleanup compler warnings. Added bonus: My editor cleans up trailing whitespace. Index: replace.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/plugins/replace/replace.c,v retrieving revision 1.61 retrieving revision 1.62 diff -u -d -r1.61 -r1.62 --- replace.c 22 Jun 2005 21:59:50 -0000 1.61 +++ replace.c 16 Jan 2009 22:51:28 -0000 1.62 @@ -130,9 +130,9 @@ * * Function not supported yet. */ -static int rep_can_replace_child(storage_object_t * obj, - storage_object_t * child, - storage_object_t * new_child) { +static int rep_can_replace_child(storage_object_t * UNUSED(obj), + storage_object_t * UNUSED(child), + storage_object_t * UNUSED(new_child)) { LOG_ENTRY(); LOG_EXIT_INT(ENOSYS); @@ -404,7 +404,7 @@ } -static void find_replace_dm_devices(list_anchor_t result_list) { +static void find_replace_dm_devices(list_anchor_t UNUSED(result_list)) { dm_device_list_t * device_list = NULL; dm_device_list_t * device; @@ -799,7 +799,7 @@ * Create a new replace object using the specified objects. */ static int rep_create(list_anchor_t objects, - option_array_t * options, + option_array_t * UNUSED(options), list_anchor_t new_obj_list) { int rc = 0; @@ -867,7 +867,7 @@ * * We don't expect the replace plugin to ever be called for discard. */ -static int rep_discard(list_anchor_t objects) { +static int rep_discard(list_anchor_t UNUSED(objects)) { LOG_ENTRY(); LOG_EXIT_INT(ENOSYS); return ENOSYS; @@ -914,9 +914,9 @@ /* * rep_replace_child */ -static int rep_replace_child(storage_object_t * obj, - storage_object_t * child, - storage_object_t * new_child) { +static int rep_replace_child(storage_object_t * UNUSED(obj), + storage_object_t * UNUSED(child), + storage_object_t * UNUSED(new_child)) { LOG_ENTRY(); LOG_EXIT_INT(ENOSYS); return(ENOSYS); @@ -1152,7 +1152,7 @@ * Any existing replace object will be activated. Asking if it can be * activated is redundant. */ -static int rep_can_activate(storage_object_t * obj) { +static int rep_can_activate(storage_object_t * UNUSED(obj)) { LOG_ENTRY(); @@ -1212,7 +1212,7 @@ * * Repalce objects cannot be deactivated by the user. */ -static int rep_can_deactivate(storage_object_t * obj) { +static int rep_can_deactivate(storage_object_t * UNUSED(obj)) { LOG_ENTRY(); @@ -1291,7 +1291,7 @@ } switch (context->action) { - + case EVMS_Task_Create: /* No options for create. */ context->option_descriptors->count = 0; @@ -1331,7 +1331,7 @@ * options as appropriate. */ static int rep_set_option(task_context_t * context, - u_int32_t index, + u_int32_t UNUSED(index), value_t * value, task_effect_t * effect) { int rc = 0; @@ -1344,7 +1344,7 @@ } switch (context->action) { - + case EVMS_Task_Create: break; @@ -1377,7 +1377,7 @@ } switch (context->action) { - + case EVMS_Task_Create: // Assume front end has selected valid objects from the // acceptable_objects list. Could add safety checking. @@ -1677,7 +1677,7 @@ * * This stub is here for completeness and to document the above. */ -static int rep_backup_metadata(storage_object_t * object) { +static int rep_backup_metadata(storage_object_t * UNUSED(object)) { LOG_ENTRY(); |