Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update pg_amqp.c #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/pg_amqp.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void _PG_init() {
}

static struct brokerstate *
local_amqp_get_a_bs(broker_id) {
local_amqp_get_a_bs(int broker_id) {
struct brokerstate *bs;
for(bs = HEAD_BS; bs; bs = bs->next) {
if(bs->broker_id == broker_id) return bs;
Expand All @@ -149,7 +149,7 @@ local_amqp_get_a_bs(broker_id) {
return bs;
}
static struct brokerstate *
local_amqp_get_bs(broker_id) {
local_amqp_get_bs(int broker_id) {
char sql[1024];
char host_copy[300] = "";
int tries = 0;
Expand Down Expand Up @@ -236,7 +236,7 @@ local_amqp_get_bs(broker_id) {
return bs;
}
static void
local_amqp_disconnect(broker_id) {
local_amqp_disconnect(int broker_id) {
struct brokerstate *bs = local_amqp_get_a_bs(broker_id);
local_amqp_disconnect_bs(bs);
}
Expand Down