From 15ba3342aabb32e0b15bf2c7594e79b4b038dd51 Mon Sep 17 00:00:00 2001 From: Simon Riggs Date: Tue, 7 Jun 2011 11:12:58 +0100 Subject: [PATCH] Remove whitespace --- sql/Makefile | 2 +- sql/repmgr_funcs.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sql/Makefile b/sql/Makefile index f8342c3d..d61848b7 100644 --- a/sql/Makefile +++ b/sql/Makefile @@ -6,7 +6,7 @@ MODULE_big = repmgr_funcs DATA_built=repmgr_funcs.sql DATA=uninstall_repmgr_funcs.sql -OBJS=repmgr_funcs.o +OBJS=repmgr_funcs.o ifdef USE_PGXS PGXS := $(shell pg_config --pgxs) diff --git a/sql/repmgr_funcs.c b/sql/repmgr_funcs.c index 5adfb8b3..9ff4b6f5 100644 --- a/sql/repmgr_funcs.c +++ b/sql/repmgr_funcs.c @@ -119,7 +119,7 @@ repmgr_shmem_startup(void) { /* First time through ... */ shared_state->lock = LWLockAssign(); - snprintf(shared_state->location, + snprintf(shared_state->location, sizeof(shared_state->location), "%X/%X", 0, 0); } @@ -155,7 +155,7 @@ repmgr_set_standby_location(char *locationstr) /* SQL Functions */ /* Read last xlog location reported by this standby from shared memory */ -Datum +Datum repmgr_get_last_standby_location(PG_FUNCTION_ARGS) { char location[MAXFNAMELEN]; @@ -172,8 +172,8 @@ repmgr_get_last_standby_location(PG_FUNCTION_ARGS) } -/* Set update last xlog location reported by this standby to shared memory */ -Datum +/* Set update last xlog location reported by this standby to shared memory */ +Datum repmgr_update_standby_location(PG_FUNCTION_ARGS) { text *location = PG_GETARG_TEXT_P(0);