diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:54:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:54:06 +0000 |
commit | 5746309cb4be2073d550ad7a6885e918631dbc38 (patch) | |
tree | 89455bc4aadf977816b38df13f990372cd81d71a /src/nse/test_nse_api.c | |
parent | 6fd3e715cae09fa6e657c96f1c6f9711ee51f42f (diff) | |
download | gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.tar.gz gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.zip |
indentation
Diffstat (limited to 'src/nse/test_nse_api.c')
-rw-r--r-- | src/nse/test_nse_api.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/nse/test_nse_api.c b/src/nse/test_nse_api.c index c06b2be8b..e4d2ba409 100644 --- a/src/nse/test_nse_api.c +++ b/src/nse/test_nse_api.c | |||
@@ -88,8 +88,7 @@ end_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
88 | * | 88 | * |
89 | */ | 89 | */ |
90 | static void | 90 | static void |
91 | check_nse_message (void *cls, | 91 | check_nse_message (void *cls, struct GNUNET_TIME_Absolute timestamp, |
92 | struct GNUNET_TIME_Absolute timestamp, | ||
93 | double estimate, double std_dev) | 92 | double estimate, double std_dev) |
94 | { | 93 | { |
95 | int *ok = cls; | 94 | int *ok = cls; |
@@ -110,13 +109,13 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
110 | { | 109 | { |
111 | p->cfg = GNUNET_CONFIGURATION_create (); | 110 | p->cfg = GNUNET_CONFIGURATION_create (); |
112 | #if START_ARM | 111 | #if START_ARM |
113 | p->arm_proc = GNUNET_OS_start_process (NULL, NULL, | 112 | p->arm_proc = |
114 | "gnunet-service-arm", | 113 | GNUNET_OS_start_process (NULL, NULL, "gnunet-service-arm", |
115 | "gnunet-service-arm", | 114 | "gnunet-service-arm", |
116 | #if VERBOSE_ARM | 115 | #if VERBOSE_ARM |
117 | "-L", "DEBUG", | 116 | "-L", "DEBUG", |
118 | #endif | 117 | #endif |
119 | "-c", cfgname, NULL); | 118 | "-c", cfgname, NULL); |
120 | #endif | 119 | #endif |
121 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); | 120 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); |
122 | 121 | ||
@@ -125,13 +124,13 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
125 | 124 | ||
126 | 125 | ||
127 | static void | 126 | static void |
128 | run (void *cls, | 127 | run (void *cls, char *const *args, const char *cfgfile, |
129 | char *const *args, | 128 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
130 | const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) | ||
131 | { | 129 | { |
132 | die_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply | 130 | die_task = |
133 | (GNUNET_TIME_UNIT_MINUTES, 1), | 131 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply |
134 | &end_test, NULL); | 132 | (GNUNET_TIME_UNIT_MINUTES, 1), &end_test, |
133 | NULL); | ||
135 | 134 | ||
136 | setup_peer (&p1, cfgfile); | 135 | setup_peer (&p1, cfgfile); |
137 | h = GNUNET_NSE_connect (cfg, &check_nse_message, cls); | 136 | h = GNUNET_NSE_connect (cfg, &check_nse_message, cls); |