diff options
-rw-r--r-- | src/compression/huffman.c | 4 | ||||
-rw-r--r-- | src/tests/md_openmp.c | 2 | ||||
-rw-r--r-- | src/tests/md_openmp_util.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/compression/huffman.c b/src/compression/huffman.c index bd0a15c..77660fc 100644 --- a/src/compression/huffman.c +++ b/src/compression/huffman.c @@ -58,9 +58,9 @@ static int comp_htree(const void *leafptr1, const void *leafptr2, const void *pr { const union htree_nodeleaf *leaf1=(union htree_nodeleaf *)leafptr1; const union htree_nodeleaf *leaf2=(union htree_nodeleaf *)leafptr2; - (void)private; - int rval=0; + (void)private; + if (leaf1->leaf.prob<leaf2->leaf.prob) rval=1; else if (leaf1->leaf.prob>leaf2->leaf.prob) diff --git a/src/tests/md_openmp.c b/src/tests/md_openmp.c index 1560c5d..168092a 100644 --- a/src/tests/md_openmp.c +++ b/src/tests/md_openmp.c @@ -19,7 +19,7 @@ void update ( int np, int nd, double pos[], double vel[], double f[], /******************************************************************************/ -int main ( int argc, char *argv[] ) +int main () /******************************************************************************/ /* diff --git a/src/tests/md_openmp_util.c b/src/tests/md_openmp_util.c index 26c630d..d3504e4 100644 --- a/src/tests/md_openmp_util.c +++ b/src/tests/md_openmp_util.c @@ -19,7 +19,7 @@ void update ( int np, int nd, float pos[], float vel[], float f[], /******************************************************************************/ -int main ( int argc, char *argv[] ) +int main () /******************************************************************************/ /* |