diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-06-28 17:08:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-06-28 17:08:07 +0000 |
commit | 3e719ecc0f2252bfb01ce6ee057e6d63dd4b7037 (patch) | |
tree | 613635d211366eda3ac83eccee08f49e78e125e5 /src/datastore/perf_datastore_api.c | |
parent | a913b5f73410eb3f0568670046d3ecf3b233744f (diff) | |
download | gnunet-3e719ecc0f2252bfb01ce6ee057e6d63dd4b7037.tar.gz gnunet-3e719ecc0f2252bfb01ce6ee057e6d63dd4b7037.zip |
airplane hackery
Diffstat (limited to 'src/datastore/perf_datastore_api.c')
-rw-r--r-- | src/datastore/perf_datastore_api.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/datastore/perf_datastore_api.c b/src/datastore/perf_datastore_api.c index 95ee18dad..f10f6d0f5 100644 --- a/src/datastore/perf_datastore_api.c +++ b/src/datastore/perf_datastore_api.c | |||
@@ -104,6 +104,9 @@ static unsigned long long stored_ops; | |||
104 | 104 | ||
105 | static struct GNUNET_TIME_Absolute start_time; | 105 | static struct GNUNET_TIME_Absolute start_time; |
106 | 106 | ||
107 | static int ok; | ||
108 | |||
109 | |||
107 | static int | 110 | static int |
108 | putValue (int i, int k) | 111 | putValue (int i, int k) |
109 | { | 112 | { |
@@ -206,7 +209,6 @@ run (void *cls, | |||
206 | static int | 209 | static int |
207 | check () | 210 | check () |
208 | { | 211 | { |
209 | int ok = 1 + 2 + 4 + 8; | ||
210 | pid_t pid; | 212 | pid_t pid; |
211 | char *const argv[] = { "perf-datastore-api", | 213 | char *const argv[] = { "perf-datastore-api", |
212 | "-c", | 214 | "-c", |
@@ -228,7 +230,7 @@ check () | |||
228 | sleep (1); | 230 | sleep (1); |
229 | GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, | 231 | GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, |
230 | argv, "perf-datastore-api", "nohelp", | 232 | argv, "perf-datastore-api", "nohelp", |
231 | options, &run, &ok); | 233 | options, &run, NULL); |
232 | if (0 != PLIBC_KILL (pid, SIGTERM)) | 234 | if (0 != PLIBC_KILL (pid, SIGTERM)) |
233 | { | 235 | { |
234 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); | 236 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); |