Skip to content

Commit

Permalink
srdb2: removed trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 13, 2023
1 parent e710b67 commit c30d57a
Show file tree
Hide file tree
Showing 22 changed files with 111 additions and 111 deletions.
4 changes: 2 additions & 2 deletions src/lib/srdb2/db.c
Original file line number Diff line number Diff line change
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/lib/srdb2/db.h
Original file line number Diff line number Diff line change
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 Expand Up @@ -44,7 +44,7 @@ extern "C"


/*
* Various database flags shared by modules
* Various database flags shared by modules
*/
#define SRDB_LOAD_SER (1 << 0) /* The row should be loaded by SER */
#define SRDB_DISABLED (1 << 1) /* The row is disabled */
Expand Down
10 changes: 5 additions & 5 deletions src/lib/srdb2/db_cmd.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2001-2005 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
*/

/** \ingroup DB_API
* @{
/** \ingroup DB_API
* @{
*/

#include "db_cmd.h"
Expand Down
10 changes: 5 additions & 5 deletions src/lib/srdb2/db_cmd.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2001-2005 FhG FOKUS
* Copyright (C) 2006-2007 iptelorg GmbH
*
Expand All @@ -14,16 +14,16 @@
* 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
*/

#ifndef _DB_CMD_H
#define _DB_CMD_H 1

/** \ingroup DB_API
* @{
/** \ingroup DB_API
* @{
*/

/** \file
Expand Down
10 changes: 5 additions & 5 deletions src/lib/srdb2/db_con.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
*/

/** \ingroup DB_API
* @{
/** \ingroup DB_API
* @{
*/

#include "db_con.h"
Expand Down
10 changes: 5 additions & 5 deletions src/lib/srdb2/db_con.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,16 +14,16 @@
* 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
*/

#ifndef _DB_CON_H
#define _DB_CON_H 1

/** \ingroup DB_API
* @{
/** \ingroup DB_API
* @{
*/

#include "db_gen.h"
Expand Down
12 changes: 6 additions & 6 deletions src/lib/srdb2/db_ctx.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 @@ -19,13 +19,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
*/

/** \ingroup DB_API
* @{
/** \ingroup DB_API
* @{
*/

#include "db_ctx.h"
Expand Down Expand Up @@ -235,7 +235,7 @@ int db_add_db(db_ctx_t *ctx, const char *uri)
}

/* We must create the db_con structure after lookup_ctx_data and associated
* code above, this is to ensure that db_con in the DB driver gets called
* code above, this is to ensure that db_con in the DB driver gets called
* after db_ctx in the same driver. db_con function might rely on the
* previously created context structures
*/
Expand Down
12 changes: 6 additions & 6 deletions src/lib/srdb2/db_ctx.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,16 +14,16 @@
* 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
*/

#ifndef _DB_CTX_H
#define _DB_CTX_H 1

/** \ingroup DB_API
* @{
/** \ingroup DB_API
* @{
*/

#include "db_drv.h"
Expand All @@ -46,7 +46,7 @@ extern "C"
* name. A driver can have multiple connections in a context but
* it should have only one structure attached to db_ctx structure
* (which will be shared by all the connections of that driver in
* db_ctx.
* db_ctx.
*/
struct db_ctx_data
{
Expand Down
12 changes: 6 additions & 6 deletions src/lib/srdb2/db_drv.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
*/

/** \ingroup DB_API
* @{
/** \ingroup DB_API
* @{
*/

#include "db_drv.h"
Expand Down Expand Up @@ -99,7 +99,7 @@ int db_drv_func(db_drv_func_t *func, str *module, char *func_name)
* Call function with name <func_name> in DB driver <module>, give
* it pointer <db_struct> as the pointer to the corresponding DB structure
* (type of the structure is function-specific) and <offset> is the offset
* of the driver/connection within the context (used to make DB_DRV_ATTACH
* of the driver/connection within the context (used to make DB_DRV_ATTACH
* and DB_DRV_DATA macros work)
*/
int db_drv_call(str *module, char *func_name, void *db_struct, int offset)
Expand Down
12 changes: 6 additions & 6 deletions src/lib/srdb2/db_drv.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,16 +14,16 @@
* 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
*/

#ifndef _DB_DRV_H
#define _DB_DRV_H 1

/** \ingroup DB_API
* @{
/** \ingroup DB_API
* @{
*/

#include "db_gen.h"
Expand Down Expand Up @@ -75,7 +75,7 @@ extern "C"
* Call function with name <func_name> in DB driver <module>, give
* it pointer <db_struct> as the pointer to the corresponding DB structure
* (type of the structure is function-specific) and <offset> is the offset
* of the driver/connection within the context (used to make DB_DRV_ATTACH
* of the driver/connection within the context (used to make DB_DRV_ATTACH
* and DB_DRV_DATA macros work)
*/
int db_drv_call(str *module, char *func_name, void *db_struct, int offset);
Expand Down
10 changes: 5 additions & 5 deletions src/lib/srdb2/db_fld.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2001-2005 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
*/

/** \ingroup DB_API
* @{
/** \ingroup DB_API
* @{
*/

#include "db_fld.h"
Expand Down
10 changes: 5 additions & 5 deletions src/lib/srdb2/db_fld.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,16 +14,16 @@
* 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
*/

#ifndef _DB_FLD_H
#define _DB_FLD_H 1

/** \ingroup DB_API
* @{
/** \ingroup DB_API
* @{
*/

#include "db_gen.h"
Expand Down
10 changes: 5 additions & 5 deletions src/lib/srdb2/db_gen.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
*/

/** \ingroup DB_API
* @{
/** \ingroup DB_API
* @{
*/

#include "db_gen.h"
Expand Down
14 changes: 7 additions & 7 deletions src/lib/srdb2/db_gen.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,16 +14,16 @@
* 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
*/

#ifndef _DB_GEN_H
#define _DB_GEN_H 1

/** \ingroup DB_API
* @{
/** \ingroup DB_API
* @{
*/

#include "db_drv.h"
Expand Down Expand Up @@ -146,7 +146,7 @@ extern "C"
/* Array of pointers to driver-specific data. The database API
* supports access to multiple databases at the same time and each
* database driver may want to append some data to generic DB structures,
* hence an array. The current position in the array is stored
* hence an array. The current position in the array is stored
* in db_data_idx
*/
struct db_drv *data[DB_PAYLOAD_MAX];
Expand All @@ -167,7 +167,7 @@ extern "C"


/*
* Attach a driver specific data structure to a generic
* Attach a driver specific data structure to a generic
* DB API structure
*/
#define DB_SET_PAYLOAD(db_struct, drv_data) \
Expand Down

0 comments on commit c30d57a

Please sign in to comment.