Browse Source

lib/srdb2: removed trailing spaces

Daniel-Constantin Mierla 1 year ago
parent
commit
8764ba09ee

+ 2 - 2
src/lib/srdb2/db.c

@@ -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
  */
 

+ 3 - 3
src/lib/srdb2/db.h

@@ -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
  */
 
@@ -43,7 +43,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 */

+ 13 - 13
src/lib/srdb2/db_cmd.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2005 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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"
@@ -33,7 +33,7 @@
 #include <stdarg.h>
 
 
-db_cmd_t* db_cmd(enum db_cmd_type type, db_ctx_t* ctx, char* table, 
+db_cmd_t* db_cmd(enum db_cmd_type type, db_ctx_t* ctx, char* table,
 				 db_fld_t* result, db_fld_t* match, db_fld_t* values)
 {
 	char* fname;
@@ -49,7 +49,7 @@ db_cmd_t* db_cmd(enum db_cmd_type type, db_ctx_t* ctx, char* table,
 	newp->ctx = ctx;
 
 	newp->table.len = strlen(table);
-	newp->table.s = (char*)pkg_malloc(newp->table.len + 1);	
+	newp->table.s = (char*)pkg_malloc(newp->table.len + 1);
 	if (newp->table.s == NULL) goto err;
 	memcpy(newp->table.s, table, newp->table.len + 1);
 
@@ -152,7 +152,7 @@ db_cmd_t* db_cmd(enum db_cmd_type type, db_ctx_t* ctx, char* table,
 					con->uri->scheme.len, ZSW(con->uri->scheme.s));
 				goto err;
 			}
-			
+
 			r = db_drv_func((void*)(&newp->next[i]), &con->uri->scheme, "db_next");
 			if (r < 0) goto err;
 			if (r > 0) {
@@ -195,7 +195,7 @@ int db_exec(db_res_t** res, db_cmd_t* cmd)
 {
 	db_res_t* r = NULL;
 	int ret;
-	
+
 	if (res) {
 		r = db_res(cmd);
 		if (r == NULL) return -1;
@@ -220,15 +220,15 @@ int db_getopt(db_cmd_t* cmd, char* optname, ...)
 	db_drv_func_t func;
 	db_con_t* con;
 	va_list ap;
-	
+
 	for(i = 0; i < cmd->ctx->con_n; i++) {
 		con = cmd->ctx->con[i];
-		
+
 		r = db_drv_func(&func, &con->uri->scheme, "db_getopt");
 		if (r < 0) return -1;
 		if (r > 0) func = NULL;
 		db_payload_idx = i;
-		
+
 		va_start(ap, optname);
 		if (func && func(cmd, optname, ap) < 0) {
 			va_end(ap);
@@ -236,7 +236,7 @@ int db_getopt(db_cmd_t* cmd, char* optname, ...)
 		}
 		va_end(ap);
 	}
-	
+
 	return 0;
 }
 

+ 6 - 6
src/lib/srdb2/db_cmd.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2005 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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
@@ -83,7 +83,7 @@ typedef struct db_cmd {
 } while(0)
 
 
-struct db_cmd* db_cmd(enum db_cmd_type type, struct db_ctx* ctx, char* table, 
+struct db_cmd* db_cmd(enum db_cmd_type type, struct db_ctx* ctx, char* table,
 					  db_fld_t* result, db_fld_t* match, db_fld_t* value);
 void db_cmd_free(struct db_cmd* cmd);
 

+ 5 - 5
src/lib/srdb2/db_con.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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"

+ 5 - 5
src/lib/srdb2/db_con.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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"

+ 7 - 7
src/lib/srdb2/db_ctx.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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"
@@ -137,7 +137,7 @@ void db_ctx_free(db_ctx_t* ctx)
 	 */
 	memset(((db_gen_t*)ctx)->data, '\0', sizeof(((db_gen_t*)ctx)->data));
 	db_gen_free(&ctx->gen);
-	
+
 	/* Destroy the structure */
 	if (ctx->id.s) pkg_free(ctx->id.s);
     pkg_free(ctx);
@@ -221,7 +221,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
 	 */

+ 7 - 7
src/lib/srdb2/db_ctx.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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"
@@ -45,7 +45,7 @@ struct db_ctx;
  * 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 {
 	str module;
@@ -62,7 +62,7 @@ typedef struct db_ctx {
 	struct db_con* con[DB_PAYLOAD_MAX];
 } db_ctx_t;
 
-	
+
 /*
  * Create a new database context
  */

+ 12 - 12
src/lib/srdb2/db_drv.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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"
@@ -57,16 +57,16 @@ int db_drv_func(db_drv_func_t* func, str* module, char* func_name)
 {
 	static str prefix = STR_STATIC_INIT("db_");
 	char* buf = NULL, *name;
-	
+
 	if ((buf = pkg_malloc(prefix.len + module->len + 1)) == NULL) {
 		LOG(L_ERR, "db_drv_func: No memory left\n");
 		goto error;
 	}
-	
+
 	memcpy(buf, prefix.s, prefix.len);
 	memcpy(buf + prefix.len, module->s, module->len);
 	buf[prefix.len + module->len] = '\0';
-	
+
 	/* First try to find the module with prefix "db_" */
 	name = buf;
 	if (find_module_by_name(name) == 0) {
@@ -77,13 +77,13 @@ int db_drv_func(db_drv_func_t* func, str* module, char* func_name)
 			goto error;
 		}
 	}
-	
+
 	*func = (db_drv_func_t)find_mod_export(name, func_name, 0, 0);
-	
+
 	if (buf) pkg_free(buf);
 	if (*func) return 0;
 	else return 1;
-	
+
 error:
 	if (buf) pkg_free(buf);
 	return -1;
@@ -95,7 +95,7 @@ error:
  * 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)

+ 6 - 6
src/lib/srdb2/db_drv.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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"
@@ -72,7 +72,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);

+ 7 - 7
src/lib/srdb2/db_fld.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2005 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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"
@@ -112,7 +112,7 @@ db_fld_t* db_fld_copy(db_fld_t* fld)
 	for(i = 0; i < n; i++) {
 		if (db_gen_init(&newp[i].gen) < 0) goto error;
 	}
-	
+
 	return newp;
 
  error:
@@ -132,7 +132,7 @@ db_fld_t* db_fld_copy(db_fld_t* fld)
 void db_fld_free(db_fld_t* fld)
 {
 	int i;
-	
+
 	if (DB_FLD_EMPTY(fld)) return;
 	for(i = 0; !DB_FLD_LAST(fld[i]); i++) {
 		db_gen_free(&fld[i].gen);

+ 6 - 6
src/lib/srdb2/db_fld.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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"
@@ -72,7 +72,7 @@ typedef union db_fld_val {
 	char*        cstr;   /* NULL terminated string */
 	str          lstr;   /* String with known length */
 	str          blob;   /* Blob data */
-	unsigned int bitmap; /* Bitmap data type, 32 flags, should be enough */ 
+	unsigned int bitmap; /* Bitmap data type, 32 flags, should be enough */
 	long long    int8;   /* 8-byte integer */
 } db_fld_val_t;
 

+ 5 - 5
src/lib/srdb2/db_gen.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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"

+ 7 - 7
src/lib/srdb2/db_gen.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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"
@@ -148,7 +148,7 @@ typedef struct db_gen {
 	/* 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];
@@ -169,7 +169,7 @@ extern int db_payload_idx;
 
 
 /*
- * 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) do { \

+ 5 - 5
src/lib/srdb2/db_pool.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2005 iptel.org
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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_pool.h"

+ 6 - 6
src/lib/srdb2/db_pool.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2005 iptel.org
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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_POOL_H
 #define _DB_POOL_H  1
 
-/** \ingroup DB_API 
- * @{ 
+/** \ingroup DB_API
+ * @{
  */
 
 #include "db_drv.h"
@@ -54,7 +54,7 @@ typedef struct db_pool_entry {
 
 
 int db_pool_entry_init(struct db_pool_entry *entry, void* free_func, db_uri_t* uri);
-void db_pool_entry_free(struct db_pool_entry* entry);	
+void db_pool_entry_free(struct db_pool_entry* entry);
 
 
 /*

+ 5 - 5
src/lib/srdb2/db_rec.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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_rec.h"

+ 5 - 5
src/lib/srdb2/db_rec.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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_REC_H
 #define _DB_REC_H  1
 
-/** \ingroup DB_API 
- * @{ 
+/** \ingroup DB_API
+ * @{
  */
 
 #include "db_gen.h"

+ 6 - 6
src/lib/srdb2/db_res.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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_res.h"
@@ -41,7 +41,7 @@ db_res_t* db_res(db_cmd_t* cmd)
     newp->cmd = cmd;
 	newp->field_count = cmd->result_count;
 
-	ret = db_drv_call(&cmd->ctx->con[db_payload_idx]->uri->scheme, 
+	ret = db_drv_call(&cmd->ctx->con[db_payload_idx]->uri->scheme,
 					  "db_res", newp, db_payload_idx);
 	if (ret < 0) goto err;
 

+ 5 - 5
src/lib/srdb2/db_res.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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_RES_H
 #define _DB_RES_H  1
 
-/** \ingroup DB_API 
- * @{ 
+/** \ingroup DB_API
+ * @{
  */
 
 #include "db_gen.h"

+ 9 - 9
src/lib/srdb2/db_uri.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2005 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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_uri.h"
@@ -65,11 +65,11 @@ db_uri_t* db_uri(const char* uri)
 	int len;
 	db_uri_t* newp;
 	char *turi;
-    
+
 	newp = (db_uri_t*)pkg_malloc(sizeof(db_uri_t));
 	if (newp == NULL) goto error;
 	memset(newp, '\0', sizeof(db_uri_t));
-	if (db_gen_init(&newp->gen) < 0) goto error;	
+	if (db_gen_init(&newp->gen) < 0) goto error;
 
 	len = strlen(uri);
 	turi = (char*)uri;
@@ -84,7 +84,7 @@ db_uri_t* db_uri(const char* uri)
 		newp->scheme.s = pkg_malloc(newp->scheme.len + 1);
 		if (newp->scheme.s == NULL) goto error;
 		memcpy(newp->scheme.s, uri, colon - uri);
-		
+
 		newp->body.len = len - newp->scheme.len - 1;
 		newp->body.s = pkg_malloc(newp->body.len + 1);
 		if (newp->body.s == NULL) goto error;
@@ -96,7 +96,7 @@ db_uri_t* db_uri(const char* uri)
 	/* Call db_uri function if the driver has it */
 	if (db_drv_call(&newp->scheme, "db_uri", newp, 0) < 0) goto error;
 	return newp;
-    
+
  error:
 	ERR("db_uri: Error while creating db_uri structure\n");
 	if (newp) {

+ 5 - 5
src/lib/srdb2/db_uri.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2005 FhG FOKUS
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
@@ -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_URI_H
 #define _DB_URI_H  1
 
-/** \ingroup DB_API 
- * @{ 
+/** \ingroup DB_API
+ * @{
  */
 
 #include "db_gen.h"