X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fshared%2Fmath_op.c;h=b08f8541047e3dc3b3d455f6474df9529716f10b;hp=21ef109a7508a08e5ca8be28ffe5618e641b1b57;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/shared/math_op.c b/src/shared/math_op.c index 21ef109..b08f854 100755 --- 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. @@ -24,14 +25,14 @@ int os_getprime(int val) { int i; int max_i; - + /* Value can't be even */ if((val % 2) == 0) { val++; } - - + + do { /* We just need to check odd numbers up until half