Skip to content

Commit

Permalink
db_postgres: removed trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 13, 2023
1 parent 816d826 commit 3f611b1
Show file tree
Hide file tree
Showing 22 changed files with 62 additions and 62 deletions.
4 changes: 2 additions & 2 deletions src/modules/db_postgres/db_postgres.h
Expand Up @@ -14,8 +14,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

Expand Down
4 changes: 2 additions & 2 deletions src/modules/db_postgres/km_dbase.h
Expand Up @@ -14,8 +14,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
Expand Down
6 changes: 3 additions & 3 deletions src/modules/db_postgres/km_pg_con.c
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2001-2004 iptel.org
* Copyright (C) 2008 1&1 Internet AG
*
Expand All @@ -14,8 +14,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

Expand Down
4 changes: 2 additions & 2 deletions src/modules/db_postgres/km_pg_con.h
Expand Up @@ -14,8 +14,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
Expand Down
4 changes: 2 additions & 2 deletions src/modules/db_postgres/km_pg_type.h
Expand Up @@ -17,8 +17,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
Expand Down
4 changes: 2 additions & 2 deletions src/modules/db_postgres/km_res.h
Expand Up @@ -13,8 +13,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
Expand Down
4 changes: 2 additions & 2 deletions src/modules/db_postgres/km_val.c
Expand Up @@ -14,8 +14,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
Expand Down
4 changes: 2 additions & 2 deletions src/modules/db_postgres/km_val.h
Expand Up @@ -13,8 +13,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

Expand Down
10 changes: 5 additions & 5 deletions src/modules/db_postgres/pg_cmd.c
@@ -1,4 +1,4 @@
/*
/*
* PostgreSQL Database Driver for Kamailio
*
* Portions Copyright (C) 2001-2003 FhG FOKUS
Expand All @@ -23,7 +23,7 @@
*/

/** \addtogroup postgres
* @{
* @{
*/

/** \file
Expand Down Expand Up @@ -79,7 +79,7 @@ static void pg_cmd_free(db_cmd_t *cmd, struct pg_cmd *payload)
* unique within a connection to the server so we just keep a global counter
* and the name will be that number converted to text.
*
* @param cmd A command whose name is to be generated
* @param cmd A command whose name is to be generated
* @return A string allocated using pkg_malloc containing the name or NULL on
* error.
*/
Expand Down Expand Up @@ -109,7 +109,7 @@ static int gen_cmd_name(db_cmd_t *cmd)
* parameter value and types to PQexecPrepared. The function only allocates
* memory buffers and determines oids of parameters, actual values will be
* assigned by another function at runtime.
* @param cmd A command where the data strctures will be created.
* @param cmd A command where the data strctures will be created.
* @retval 0 on success.
* @retval A negative number on error.
*/
Expand Down Expand Up @@ -528,7 +528,7 @@ int pg_cmd_exec(db_res_t *res, db_cmd_t *cmd)
puri->host);
}

/* Connection is either connected or has been successfully reconnected,
/* Connection is either connected or has been successfully reconnected,
* now figure out if the prepared command on the server still exist
*/
tmp = PQdescribePrepared(pcon->con, pcmd->name);
Expand Down
8 changes: 4 additions & 4 deletions src/modules/db_postgres/pg_cmd.h
@@ -1,4 +1,4 @@
/*
/*
* Portions Copyright (C) 2001-2003 FhG FOKUS
* Copyright (C) 2003 August.Net Services, LLC
* Portions Copyright (C) 2005-2008 iptelorg GmbH
Expand Down Expand Up @@ -27,7 +27,7 @@
/*!
* \file
* \brief DB_POSTGRES :: * Declaration of pg_cmd data structure
*
*
* Declaration of pg_cmd data structure that contains PostgreSQL specific data
* stored in db_cmd structures and related functions.
* \ingroup db_postgres
Expand Down Expand Up @@ -99,7 +99,7 @@ int pg_cmd_exec(db_res_t *res, db_cmd_t *cmd);
* the first record from a result. The function retrieves the first record
* from a PGresult structure and converts the fields from PostgreSQL to
* internal SER representation.
*
*
* @param res A result set retrieved from PostgreSQL server.
* @retval 0 If executed successfully.
* @retval 1 If the result is empty.
Expand All @@ -113,7 +113,7 @@ int pg_cmd_first(db_res_t *res);
* the first record from a result. The function advances current cursor
* position in the result, retrieves the next record from a PGresult structure
* and converts the fields from PostgreSQL to internal SER representation.
*
*
* @param res A result set retrieved from PostgreSQL server.
* @retval 0 If executed successfully.
* @retval 1 If there are no more records in the result.
Expand Down
10 changes: 5 additions & 5 deletions src/modules/db_postgres/pg_con.h
@@ -1,4 +1,4 @@
/*
/*
* PostgreSQL Database Driver for Kamailio
*
* Portions Copyright (C) 2001-2003 FhG FOKUS
Expand Down Expand Up @@ -26,10 +26,10 @@
#define _PG_CON_H

/** \addtogroup postgres
* @{
* @{
*/

/** \file
/** \file
* Implementation of PostgreSQL connection related data structures and functions.
*/

Expand All @@ -42,7 +42,7 @@
#include <time.h>
#include <libpq-fe.h>

/**
/**
* Per-connection flags for PostgreSQL connections.
*/
enum pg_con_flags
Expand Down Expand Up @@ -79,7 +79,7 @@ typedef struct pg_con
int pg_con(db_con_t *con);


/** Establish a new connection to server.
/** Establish a new connection to server.
* This function is called when a Kamailio module calls db_connect to establish a
* new connection to the database server. After the connection is established
* the function sends an SQL query to the server to determine the format of
Expand Down
2 changes: 1 addition & 1 deletion src/modules/db_postgres/pg_fld.c
@@ -1,4 +1,4 @@
/*
/*
* Portions Copyright (C) 2001-2003 FhG FOKUS
* Copyright (C) 2003 August.Net Services, LLC
* Portions Copyright (C) 2005-2008 iptelorg GmbH
Expand Down
12 changes: 6 additions & 6 deletions src/modules/db_postgres/pg_fld.h
@@ -1,4 +1,4 @@
/*
/*
* Portions Copyright (C) 2001-2003 FhG FOKUS
* Copyright (C) 2003 August.Net Services, LLC
* Portions Copyright (C) 2005-2008 iptelorg GmbH
Expand Down Expand Up @@ -27,7 +27,7 @@
/*!
* \file
* \brief DB_POSTGRES :: Implementation of pg_fld data structure
*
*
* Implementation of pg_fld data structure representing PostgreSQL fields and related functions.
* \ingroup db_postgres
* Module: \ref db_postgres
Expand Down Expand Up @@ -86,11 +86,11 @@ int pg_resolve_result_oids(db_fld_t *fld, int n, PGresult *res);
* for PostgreSQL API functions.
* @param dst An array of pointers to values in PostgreSQL format. The
* function will store pointers to converted values there.
* @param off offset
* @param off offset
* @param types A type conversion table.
* @param src An array of db_fld fields to be converted.
* @param flags Connection flags controlling how values are converted.
* @todo Implement support for bit fields with size bigger than 32
* @todo Implement support for bit fields with size bigger than 32
* @todo Implement support for varbit properly to remove leading zeroes
* @todo Check if timezones are handled properly
* @todo Support for DB_NONE in pg_pg2fld and pg_check_pg2fld
Expand Down Expand Up @@ -118,7 +118,7 @@ int pg_pg2fld(db_fld_t *dst, PGresult *src, int row, pg_type_t *types,
unsigned int flags);


/** Checks if all db_fld fields have types compatible with corresponding field
/** Checks if all db_fld fields have types compatible with corresponding field
* types on the server.
* The functions checks whether all db_fld fields in the last parameter are
* compatible with column types on the server, for conversion to postgres format.
Expand All @@ -129,7 +129,7 @@ int pg_pg2fld(db_fld_t *dst, PGresult *src, int row, pg_type_t *types,
*/
int pg_check_fld2pg(db_fld_t *fld, pg_type_t *types);

/** Checks if all db_fld fields have types compatible with corresponding field
/** Checks if all db_fld fields have types compatible with corresponding field
* types on the server.
* The functions checks whether all db_fld fields in the last parameter are
* compatible with column types on the server, for conversion to interal DB format.
Expand Down
6 changes: 3 additions & 3 deletions src/modules/db_postgres/pg_mod.h
@@ -1,4 +1,4 @@
/*
/*
* PostgreSQL Database Driver for Kamailio
*
* Portions Copyright (C) 2001-2003 FhG FOKUS
Expand Down Expand Up @@ -26,11 +26,11 @@
#define _PG_MOD_H

/** @defgroup postgres PostgreSQL Database Driver
* @ingroup DB_API
* @ingroup DB_API
*/
/** @{ */

/** \file
/** \file
* Postgres module interface.
*/

Expand Down
4 changes: 2 additions & 2 deletions src/modules/db_postgres/pg_oid.c
@@ -1,4 +1,4 @@
/*
/*
* PostgreSQL Database Driver for Kamailio
*
* Portions Copyright (C) 2001-2003 FhG FOKUS
Expand All @@ -23,7 +23,7 @@
*/

/** \addtogroup postgres
* @{
* @{
*/

/** \file
Expand Down
4 changes: 2 additions & 2 deletions src/modules/db_postgres/pg_oid.h
@@ -1,4 +1,4 @@
/*
/*
* PostgreSQL Database Driver for Kamailio
*
* Portions Copyright (C) 2001-2003 FhG FOKUS
Expand Down Expand Up @@ -26,7 +26,7 @@
#define _PG_OID_H

/** \addtogroup postgres
* @{
* @{
*/

/** \file
Expand Down
4 changes: 2 additions & 2 deletions src/modules/db_postgres/pg_res.c
@@ -1,4 +1,4 @@
/*
/*
* PostgreSQL Database Driver for Kamailio
*
* Portions Copyright (C) 2001-2003 FhG FOKUS
Expand All @@ -23,7 +23,7 @@
*/

/** \addtogroup postgres
* @{
* @{
*/

/** \file
Expand Down
4 changes: 2 additions & 2 deletions src/modules/db_postgres/pg_res.h
@@ -1,4 +1,4 @@
/*
/*
* PostgreSQL Database Driver for Kamailio
*
* Portions Copyright (C) 2001-2003 FhG FOKUS
Expand Down Expand Up @@ -26,7 +26,7 @@
#define _PG_RES_H

/** \addtogroup postgres
* @{
* @{
*/

/** \file
Expand Down
4 changes: 2 additions & 2 deletions src/modules/db_postgres/pg_sql.c
@@ -1,4 +1,4 @@
/*
/*
* PostgreSQL Database Driver for Kamailio
*
* Portions Copyright (C) 2001-2003 FhG FOKUS
Expand All @@ -23,7 +23,7 @@
*/

/** \addtogroup postgres
* @{
* @{
*/

/** \file
Expand Down
4 changes: 2 additions & 2 deletions src/modules/db_postgres/pg_sql.h
@@ -1,4 +1,4 @@
/*
/*
* PostgreSQL Database Driver for Kamailio
*
* Portions Copyright (C) 2001-2003 FhG FOKUS
Expand Down Expand Up @@ -26,7 +26,7 @@
#define _PG_SQL_H

/** \addtogroup postgres
* @{
* @{
*/

/** \file
Expand Down

0 comments on commit 3f611b1

Please sign in to comment.