2
0
Эх сурвалжийг харах

- extends one comments in sr_module.c
- unify db-api documentation
- fix one error message in db_ut.c


git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@2741 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt 18 жил өмнө
parent
commit
2b1249dc76

+ 1 - 1
lib/srdb1/db_ut.c

@@ -88,7 +88,7 @@ inline int db_int2str(int _v, char* _s, int* _l)
 
 	ret = snprintf(_s, *_l, "%-d", _v);
 	if (ret < 0 || ret >= *_l) {
-		LM_ERR("Error in sprintf\n");
+		LM_ERR("Error in snprintf\n");
 		return -1;
 	}
 	*_l = ret;

+ 5 - 6
lib/srdb1/doc/db-api.txt

@@ -602,15 +602,15 @@ the insertion of the new data.
 
 2.10.2 Prototype
 
-   int (*db_replace_f) (db_con_t* handle, db_key_t* keys, db_val_t* vals, int n);
+   int (*db_replace_f) (db_con_t* _h, db_key_t* _k, db_val_t* _v, int _n);
 
 2.10.3 Parameters
 
 The function takes 4 parameters:
-handle: structure representing database connection
-keys: key names
-vals: values of the keys
-n: number of key=value pairs
+_h: structure representing database connection
+_k: key names
+_v: values of the keys
+_n: number of key=value pairs
 
 2.10.4 Return Value
 
@@ -678,7 +678,6 @@ The old row will not deleted before the insertion of the new data.
 2.13.3 Parameters
 
 The function takes four parameters:
-
 _h: structure representing database connection
 _k: key names
 _v: values of the keys