Skip to content

Commit

Permalink
db_berkeley: removed trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 13, 2023
1 parent 10d1e05 commit e7cedac
Show file tree
Hide file tree
Showing 19 changed files with 80 additions and 80 deletions.
2 changes: 1 addition & 1 deletion src/modules/db_berkeley/bdb_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/

/*! \file
* Berkeley DB :
* Berkeley DB :
* Declaration of bdb_cmd data structure that contains BDB specific data
* stored in db_cmd structures and related functions.
*
Expand Down
12 changes: 6 additions & 6 deletions src/modules/db_berkeley/bdb_con.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* BDB Database Driver for Kamailio
*
* Copyright (C) 2008 iptelorg GmbH
Expand All @@ -16,15 +16,15 @@
* details.
*
* 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.,
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef _BDB_CON_H_
#define _BDB_CON_H_

/** \addtogroup bdb
* @{
* @{
*/

/*! \file
Expand All @@ -42,7 +42,7 @@

#include "bdb_lib.h"

/**
/**
* Per-connection flags for BDB connections.
*/
enum bdb_con_flags
Expand All @@ -54,7 +54,7 @@ enum bdb_con_flags

/** A structure representing a connection to a BDB.
* This structure represents connections to BDB. It contains
* BDB specific per-connection data,
* BDB specific per-connection data,
*/

typedef struct _bdb_con
Expand All @@ -74,7 +74,7 @@ typedef struct _bdb_con
int bdb_con(db_con_t *con);


/** Establish a new connection to server.
/** Establish a new connection to server.
* This function is called when a SER module calls db_connect to establish a
* new connection to the database server.
* @param con A structure representing database connection.
Expand Down
2 changes: 1 addition & 1 deletion src/modules/db_berkeley/bdb_fld.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/

/*! \file
* Berkeley DB :
* Berkeley DB :
* Implementation of bdb_fld data structure representing BDB fields and
* related functions.
*
Expand Down
18 changes: 9 additions & 9 deletions src/modules/db_berkeley/bdb_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* 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
*
*
*/

/*! \file
Expand Down Expand Up @@ -292,7 +292,7 @@ int bdblib_create_dbenv(DB_ENV **_dbenv, char *_home)
/*
flags = DB_CREATE |
DB_RECOVER |
DB_INIT_LOG |
DB_INIT_LOG |
DB_INIT_LOCK |
DB_INIT_MPOOL |
DB_THREAD |
Expand Down Expand Up @@ -475,16 +475,16 @@ void bdblib_log(int op, bdb_db_p _db_p, bdb_table_p _tp, char *_msg, int len)

/**
* The function is called to create a handle to a db table.
*
*
* On startup, we do not create any of the db handles.
* Instead it is done on first-use (lazy-initialized) to only create handles to
* Instead it is done on first-use (lazy-initialized) to only create handles to
* files (db) that we require.
*
*
* There is one db file per kamailio table (eg. acc), and they should exist
* in your DB_PATH (refer to kamctlrc) directory.
*
* This function does _not_ create the underlying binary db tables.
* Creating the tables MUST be manually performed before
* Creating the tables MUST be manually performed before
* kamailio startup by 'kamdbctl create'
*
* Function returns NULL on error, which will cause kamailio to exit.
Expand Down Expand Up @@ -1148,7 +1148,7 @@ int bdblib_valtochar(bdb_table_p tp, db_fld_t *fld, int fld_count, char *kout,
if(i == k) {
/*
KEY was provided; append to buffer;
_k[j] contains a key, but it is a key that
_k[j] contains a key, but it is a key that
corresponds to column k of our schema.
now we know it is a match, and we don't need
index k for anything else
Expand Down
6 changes: 3 additions & 3 deletions src/modules/db_berkeley/bdb_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* 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
*
*
*/

/*! \file
Expand Down
6 changes: 3 additions & 3 deletions src/modules/db_berkeley/bdb_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* 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
*
*
*/

/*! \file
Expand Down
6 changes: 3 additions & 3 deletions src/modules/db_berkeley/bdb_mod.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* 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
*
*
*/

/*! \file
Expand Down
8 changes: 4 additions & 4 deletions src/modules/db_berkeley/bdb_res.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2001-2003 FhG Fokus
* Copyright (C) 2006-2007 iptelorg GmbH
*
Expand All @@ -14,13 +14,13 @@
* 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
*/

/*! \file
* Berkeley DB :
* Berkeley DB :
*
* \ingroup database
*/
Expand Down
8 changes: 4 additions & 4 deletions src/modules/db_berkeley/bdb_res.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2001-2003 FhG Fokus
* Copyright (C) 2006-2007 iptelorg GmbH
*
Expand All @@ -14,13 +14,13 @@
* 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
*/

/*! \file
* Berkeley DB :
* Berkeley DB :
*
* \ingroup database
*/
Expand Down
10 changes: 5 additions & 5 deletions src/modules/db_berkeley/db_berkeley.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ void bdb_close(db1_con_t *_h)
pkg_free(_h);
}

/*
/*
* n can be the dbenv path or a table name
*/
int bdb_reload(char *_n)
Expand Down Expand Up @@ -406,7 +406,7 @@ int km_bdb_query(db1_con_t *_con, db_key_t *_k, db_op_t *_op, db_val_t *_v,
data.ulen = MAX_ROW_SIZE;
data.flags = DB_DBT_USERMEM;

/* if _c is NULL and _nc is zero, you will get all table
/* if _c is NULL and _nc is zero, you will get all table
columns in the result
*/
if(_c) {
Expand Down Expand Up @@ -855,10 +855,10 @@ int bdb_delete(db1_con_t *_h, db_key_t *_k, db_op_t *_op, db_val_t *_v, int _n)
}

/*
_bdb_delete_cursor -- called from bdb_delete when the query involves operators
_bdb_delete_cursor -- called from bdb_delete when the query involves operators
other than equal '='. Adds support for queries like this:
DELETE from SomeTable WHERE _k[0] < _v[0]
In this case, the keys _k are not the actually schema keys, so we need to
In this case, the keys _k are not the actually schema keys, so we need to
iterate via cursor to perform this operation.
*/
int _bdb_delete_cursor(
Expand Down Expand Up @@ -981,7 +981,7 @@ int _bdb_delete_cursor(
* _k: key names
* _op: operators
* _v: values of the keys that must match
* _uk: update keys; cols that need to be updated
* _uk: update keys; cols that need to be updated
* _uv: update values; col values that need to be committed
* _un: number of rows to update
*/
Expand Down
8 changes: 4 additions & 4 deletions src/modules/db_berkeley/db_berkeley.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
* 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
*
*
*/

/*! \file
* Berkeley DB :
* Berkeley DB :
*
* \ingroup database
*/
Expand Down
20 changes: 10 additions & 10 deletions src/modules/db_berkeley/km_bdb_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
* 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
*
*
*/

/*! \file
* Berkeley DB :
* Berkeley DB :
*
* \ingroup database
*/
Expand Down Expand Up @@ -311,7 +311,7 @@ int km_bdblib_create_dbenv(DB_ENV **_dbenv, char *_home)
/*
flags = DB_CREATE |
DB_RECOVER |
DB_INIT_LOG |
DB_INIT_LOG |
DB_INIT_LOCK |
DB_INIT_MPOOL |
DB_THREAD |
Expand Down Expand Up @@ -516,16 +516,16 @@ void km_bdblib_log(int op, table_p _tp, char *_msg, int len)

/**
* The function is called to create a handle to a db table.
*
*
* On startup, we do not create any of the db handles.
* Instead it is done on first-use (lazy-initialized) to only create handles to
* Instead it is done on first-use (lazy-initialized) to only create handles to
* files (db) that we require.
*
*
* There is one db file per kamailio table (eg. acc), and they should exist
* in your DB_PATH (refer to kamctlrc) directory.
*
* This function does _not_ create the underlying binary db tables.
* Creating the tables MUST be manually performed before
* Creating the tables MUST be manually performed before
* kamailio startup by 'kamdbctl create'
*
* Function returns NULL on error, which will cause kamailio to exit.
Expand Down Expand Up @@ -1080,7 +1080,7 @@ int km_bdblib_valtochar(table_p _tp, int *_lres, char *_k, int *_klen,
if(i == k) {
/*
KEY was provided; append to buffer;
_k[j] contains a key, but it is a key that
_k[j] contains a key, but it is a key that
corresponds to column k of our schema.
now we know it is a match, and we don't need
index k for anything else
Expand Down
8 changes: 4 additions & 4 deletions src/modules/db_berkeley/km_bdb_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
* 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
*
*
*/

/*! \file
* Berkeley DB :
* Berkeley DB :
*
* \ingroup database
*/
Expand Down
8 changes: 4 additions & 4 deletions src/modules/db_berkeley/km_bdb_res.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
* 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
*
*
*/

/*! \file
* Berkeley DB :
* Berkeley DB :
*
* \ingroup database
*/
Expand Down
8 changes: 4 additions & 4 deletions src/modules/db_berkeley/km_bdb_res.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
* 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
*
*
*/

/*! \file
* Berkeley DB :
* Berkeley DB :
*
* \ingroup database
*/
Expand Down
6 changes: 3 additions & 3 deletions src/modules/db_berkeley/km_bdb_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* 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
*
*
*/

/*! \file
Expand Down

0 comments on commit e7cedac

Please sign in to comment.