aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-11-26 23:55:26 +0100
committerThomas White <taw@bitwiz.org.uk>2009-11-26 23:55:26 +0100
commit6570641ec8250465e9a91bf4ec363a61b5f06ba3 (patch)
tree63288df92fd330abd23d11c8fec52a63abcf9295
parent7b8844a5087da3fb227c3f7b7c8ce6c13cf54a4e (diff)
A missing return value and a missing initialisation
-rw-r--r--src/pattern_sim.c2
-rw-r--r--src/utils.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 5e2df13b..84956bc3 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -201,4 +201,6 @@ int main(int argc, char *argv[])
if ( n_images && (number >= n_images) ) done = 1;
} while ( !done );
+
+ return 0;
}
diff --git a/src/utils.c b/src/utils.c
index 90720510..9aa235a2 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -77,7 +77,7 @@ void progress_bar(int val, int total, const char *text)
double poisson_noise(double expected)
{
double L;
- int k;
+ int k = 0;
double p = 1.0;
L = exp(-expected);