projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.7
[ossec-hids.git]
/
src
/
shared
/
math_op.c
diff --git
a/src/shared/math_op.c
b/src/shared/math_op.c
index
21ef109
..
b08f854
100755
(executable)
--- a/
src/shared/math_op.c
+++ b/
src/shared/math_op.c
@@
-1,4
+1,5
@@
-/* @(#) $Id$ */
+/* @(#) $Id: ./src/shared/math_op.c, 2011/09/08 dcid Exp $
+ */
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
@@
-24,14
+25,14
@@
int os_getprime(int val)
{
int i;
int max_i;
{
int i;
int max_i;
-
+
/* Value can't be even */
if((val % 2) == 0)
{
val++;
}
/* Value can't be even */
if((val % 2) == 0)
{
val++;
}
-
-
+
+
do
{
/* We just need to check odd numbers up until half
do
{
/* We just need to check odd numbers up until half