From 6ecb42b3ea47c99c74b3265f301b2ca79724f843 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 3 Aug 2019 18:38:24 -0700 Subject: [PATCH] Run through Clang's readability-inconsistent-declaration-parameter-name --- include/backend.h | 2 +- include/hashes.h | 2 +- include/potfile.h | 2 +- include/status.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/backend.h b/include/backend.h index 074a0cd9f..4d24cf4c0 100644 --- a/include/backend.h +++ b/include/backend.h @@ -84,7 +84,7 @@ int hc_clCreateKernel (hashcat_ctx_t *hashcat_ctx, cl_program program int hc_clCreateProgramWithBinary (hashcat_ctx_t *hashcat_ctx, cl_context context, cl_uint num_devices, const cl_device_id *device_list, const size_t *lengths, const unsigned char **binaries, cl_int *binary_status, cl_program *program); int hc_clCreateProgramWithSource (hashcat_ctx_t *hashcat_ctx, cl_context context, cl_uint count, const char **strings, const size_t *lengths, cl_program *program); int hc_clEnqueueCopyBuffer (hashcat_ctx_t *hashcat_ctx, cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer, size_t src_offset, size_t dst_offset, size_t size, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event); -int hc_clEnqueueMapBuffer (hashcat_ctx_t *hashcat_ctx, cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_map, cl_map_flags map_flags, size_t offset, size_t cb, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event, void **buf); +int hc_clEnqueueMapBuffer (hashcat_ctx_t *hashcat_ctx, cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_map, cl_map_flags map_flags, size_t offset, size_t size, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event, void **buf); int hc_clEnqueueNDRangeKernel (hashcat_ctx_t *hashcat_ctx, cl_command_queue command_queue, cl_kernel kernel, cl_uint work_dim, const size_t *global_work_offset, const size_t *global_work_size, const size_t *local_work_size, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event); int hc_clEnqueueReadBuffer (hashcat_ctx_t *hashcat_ctx, cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read, size_t offset, size_t size, void *ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event); int hc_clEnqueueUnmapMemObject (hashcat_ctx_t *hashcat_ctx, cl_command_queue command_queue, cl_mem memobj, void *mapped_ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event); diff --git a/include/hashes.h b/include/hashes.h index 7509e944f..2683e84f0 100644 --- a/include/hashes.h +++ b/include/hashes.h @@ -6,7 +6,7 @@ #ifndef _HASHES_H #define _HASHES_H -int sort_by_string (const void *v1, const void *v2); +int sort_by_string (const void *p1, const void *p2); int sort_by_digest_p0p1 (const void *v1, const void *v2, void *v3); int sort_by_salt (const void *v1, const void *v2); int sort_by_hash (const void *v1, const void *v2, void *v3); diff --git a/include/potfile.h b/include/potfile.h index 51fd6d8d9..fcc8407c6 100644 --- a/include/potfile.h +++ b/include/potfile.h @@ -25,7 +25,7 @@ int potfile_handle_show (hashcat_ctx_t *hashcat_ctx); int potfile_handle_left (hashcat_ctx_t *hashcat_ctx); void potfile_update_hash (hashcat_ctx_t *hashcat_ctx, hash_t *found, char *line_pw_buf, int line_pw_len); -void potfile_update_hashes (hashcat_ctx_t *hashcat_ctx, hash_t *search, char *line_pw_buf, int line_pw_len, pot_tree_entry_t *tree); +void potfile_update_hashes (hashcat_ctx_t *hashcat_ctx, hash_t *hash_buf, char *line_pw_buf, int line_pw_len, pot_tree_entry_t *tree); void pot_tree_destroy (pot_tree_entry_t *tree); diff --git a/include/status.h b/include/status.h index 8a142e54c..5b0bae311 100644 --- a/include/status.h +++ b/include/status.h @@ -115,6 +115,6 @@ void status_progress_reset (hashcat_ctx_t *hashcat_ct int status_ctx_init (hashcat_ctx_t *hashcat_ctx); void status_ctx_destroy (hashcat_ctx_t *hashcat_ctx); -void status_status_destroy (hashcat_ctx_t *hashcat_ctx, hashcat_status_t *status_ctx); +void status_status_destroy (hashcat_ctx_t *hashcat_ctx, hashcat_status_t *hashcat_status); #endif // _STATUS_H