aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-11-28 08:19:22 +0100
committerPeter Eisentraut <peter@eisentraut.org>2024-11-28 08:27:20 +0100
commit7f798aca1d5df290aafad41180baea0ae311b4ee (patch)
treeb4c8132ec85c21f6c72308b5857defd70958de69 /src/backend/tcop/postgres.c
parent97525bc5c8ffb31475d23955d08e9ec9c1408f33 (diff)
downloadpostgresql-7f798aca1d5df290aafad41180baea0ae311b4ee.tar.gz
postgresql-7f798aca1d5df290aafad41180baea0ae311b4ee.zip
Remove useless casts to (void *)
Many of them just seem to have been copied around for no real reason. Their presence causes (small) risks of hiding actual type mismatches or silently discarding qualifiers Discussion: https://www.postgresql.org/message-id/flat/461ea37c-8b58-43b4-9736-52884e862820@eisentraut.org
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index bd424767176..4b985bd0561 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -1816,7 +1816,7 @@ exec_bind_message(StringInfo input_message)
one_param_data.paramval = NULL;
params_errcxt.previous = error_context_stack;
params_errcxt.callback = bind_param_error_callback;
- params_errcxt.arg = (void *) &one_param_data;
+ params_errcxt.arg = &one_param_data;
error_context_stack = &params_errcxt;
params = makeParamList(numParams);
@@ -2006,7 +2006,7 @@ exec_bind_message(StringInfo input_message)
params_data.params = params;
params_errcxt.previous = error_context_stack;
params_errcxt.callback = ParamsErrorCallback;
- params_errcxt.arg = (void *) &params_data;
+ params_errcxt.arg = &params_data;
error_context_stack = &params_errcxt;
/* Get the result format codes */
@@ -2251,7 +2251,7 @@ exec_execute_message(const char *portal_name, long max_rows)
params_data.params = portalParams;
params_errcxt.previous = error_context_stack;
params_errcxt.callback = ParamsErrorCallback;
- params_errcxt.arg = (void *) &params_data;
+ params_errcxt.arg = &params_data;
error_context_stack = &params_errcxt;
if (max_rows <= 0)