Module: kamailio
Branch: master
Commit: 572acbca5c9e1d04efd687a88ff272c00d956425
URL: https://github.com/kamailio/kamailio/commit/572acbca5c9e1d04efd687a88ff272c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-05-21T12:06:44+02:00
core: rand - removed history from files
---
Modified: src/core/rand/fastrand.c
Modified: src/core/rand/fastrand.h
Modified: src/core/rand/isaac/rand.c
---
Diff: https://github.com/kamailio/kamailio/commit/572acbca5c9e1d04efd687a88ff272c…
Patch: https://github.com/kamailio/kamailio/commit/572acbca5c9e1d04efd687a88ff272c…
---
diff --git a/src/core/rand/fastrand.c b/src/core/rand/fastrand.c
index 757e08dcae..3af12f3229 100644
--- a/src/core/rand/fastrand.c
+++ b/src/core/rand/fastrand.c
@@ -1,5 +1,5 @@
/*
- * fast pseudo random generation
+ * fast pseudo random generation
*
* Copyright (C) 2007 iptelorg GmbH
*
@@ -16,10 +16,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/*
- *History:
- *--------
- * 2007-06-15 wrapper around isaac (see
- * http://www.burtleburtle.net/bob/rand/isaacafa.html) (andrei)
+ * wrapper around isaac
+ * http://www.burtleburtle.net/bob/rand/isaacafa.html
*/
#include "fastrand.h"
@@ -36,7 +34,7 @@ static randctx is_ctx;
void fastrand_seed(unsigned int seed)
{
int i;
-
+
srandom(seed);
for (i=0; i<RANDSIZ; i++)
is_ctx.randrsl[i]=random();
diff --git a/src/core/rand/fastrand.h b/src/core/rand/fastrand.h
index c97232ebff..38bb99e9fd 100644
--- a/src/core/rand/fastrand.h
+++ b/src/core/rand/fastrand.h
@@ -1,5 +1,5 @@
/*
- * fast pseudo random generation
+ * fast pseudo random generation
*
* Copyright (C) 2007 iptelorg GmbH
*
@@ -14,9 +14,9 @@
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * 2007-06-15 wrapper around isaac (see
- * http://www.burtleburtle.net/bob/rand/isaacafa.html) (andrei)
+ */
+/* wrapper around isaac
+ * http://www.burtleburtle.net/bob/rand/isaacafa.html
*/
#ifndef _fastrand_h
diff --git a/src/core/rand/isaac/rand.c b/src/core/rand/isaac/rand.c
index 63babc7218..4665b38df9 100644
--- a/src/core/rand/isaac/rand.c
+++ b/src/core/rand/isaac/rand.c
@@ -79,7 +79,7 @@ word flag;
mix(a,b,c,d,e,f,g,h);
}
- if (flag)
+ if (flag)
{
/* initialize using the contents of r[] as the seed */
for (i=0; i<RANDSIZ; i+=8)
Module: kamailio
Branch: master
Commit: ae664527e18f5269bce80fa2669b905913098784
URL: https://github.com/kamailio/kamailio/commit/ae664527e18f5269bce80fa2669b905…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2017-05-21T12:06:12+02:00
Merge pull request #1134 from jchavanton/db_sqlite_doc_fix
db_sqlite: fix xml doc
---
Modified: src/modules/db_sqlite/doc/db_sqlite_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/ae664527e18f5269bce80fa2669b905…
Patch: https://github.com/kamailio/kamailio/commit/ae664527e18f5269bce80fa2669b905…
---
diff --git a/src/modules/db_sqlite/doc/db_sqlite_admin.xml b/src/modules/db_sqlite/doc/db_sqlite_admin.xml
index 695e0d4004..9dd8418563 100644
--- a/src/modules/db_sqlite/doc/db_sqlite_admin.xml
+++ b/src/modules/db_sqlite/doc/db_sqlite_admin.xml
@@ -62,10 +62,10 @@
</section>
<section>
- <title>Parameters</title>
- <section id="db_sqlite.p.db_set_readonly">
+ <title>Parameters</title>
+ <section id="db_sqlite.p.db_set_readonly">
<title><varname>db_set_readonly</varname> (string)</title>
-
+ <para>
This will set the db connection to "SQLITE_OPEN_READONLY", useful if another program is writing to the DB.
The value is the full path to the sqlite file used for example in any db_url or sqlops/sqlcon
@@ -85,7 +85,7 @@ modparam("sqlops","sqlcon","lrn=>sqlite:////var/mydb.sqlite") # Example if using
...
</programlisting>
</example>
- </section>
+ </section>
</section>
<section>
Module: kamailio
Branch: master
Commit: f6dde6f261891dff5b041a0e545e7bd210baf24b
URL: https://github.com/kamailio/kamailio/commit/f6dde6f261891dff5b041a0e545e7bd…
Author: Julien Chavanton <jchavanton(a)gmail.com>
Committer: Julien Chavanton <jchavanton(a)gmail.com>
Date: 2017-05-20T13:06:55-07:00
db_sqlite: fix xml doc
---
Modified: src/modules/db_sqlite/doc/db_sqlite_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/f6dde6f261891dff5b041a0e545e7bd…
Patch: https://github.com/kamailio/kamailio/commit/f6dde6f261891dff5b041a0e545e7bd…
---
diff --git a/src/modules/db_sqlite/doc/db_sqlite_admin.xml b/src/modules/db_sqlite/doc/db_sqlite_admin.xml
index 695e0d4004..9dd8418563 100644
--- a/src/modules/db_sqlite/doc/db_sqlite_admin.xml
+++ b/src/modules/db_sqlite/doc/db_sqlite_admin.xml
@@ -62,10 +62,10 @@
</section>
<section>
- <title>Parameters</title>
- <section id="db_sqlite.p.db_set_readonly">
+ <title>Parameters</title>
+ <section id="db_sqlite.p.db_set_readonly">
<title><varname>db_set_readonly</varname> (string)</title>
-
+ <para>
This will set the db connection to "SQLITE_OPEN_READONLY", useful if another program is writing to the DB.
The value is the full path to the sqlite file used for example in any db_url or sqlops/sqlcon
@@ -85,7 +85,7 @@ modparam("sqlops","sqlcon","lrn=>sqlite:////var/mydb.sqlite") # Example if using
...
</programlisting>
</example>
- </section>
+ </section>
</section>
<section>