whitespace fixes

git-svn-id: http://kdtree.googlecode.com/svn/trunk@31 58b2c0e6-ac2f-0410-a5b6-b51bcff41737
This commit is contained in:
jtsiomb 2011-11-25 00:08:45 +00:00
parent 176ca28697
commit cb79847cd3
2 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@
unsigned int get_msec(void)
{
static struct timeval timeval, first_timeval;
gettimeofday(&timeval, 0);
if(first_timeval.tv_sec == 0) {
@ -26,7 +26,7 @@ int main(int argc, char **argv)
int i, vcount = 10;
void *kd, *set;
unsigned int msec, start;
if(argc > 1 && isdigit(argv[1][0])) {
vcount = atoi(argv[1]);
}

View File

@ -35,10 +35,10 @@ int main(int argc, char **argv) {
}
srand( time(0) );
/* create a k-d tree for 3-dimensional points */
ptree = kd_create( 3 );
/* add some random nodes to the tree (assert nodes are successfully inserted) */
for( i=0; i<num_pts; i++ ) {
data[i] = 'a' + i;
@ -54,7 +54,7 @@ int main(int argc, char **argv) {
while( !kd_res_end( presults ) ) {
/* get the data and position of the current result item */
pch = (char*)kd_res_item( presults, pos );
/* compute the distance of the current result from the pt */
dist = sqrt( dist_sq( pt, pos, 3 ) );