diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-07-17 10:01:33 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-07-17 10:01:33 +0000 |
commit | 8d689d0293e48b14377db1dc4e237980183a0b28 (patch) | |
tree | 43bdb6ee859df699d7cb397ecc66df12fcb8bcf5 /src/identity/test_identity.c | |
parent | 6a98426836161b08b3e7650721497527ca3d3967 (diff) | |
download | gnunet-8d689d0293e48b14377db1dc4e237980183a0b28.tar.gz gnunet-8d689d0293e48b14377db1dc4e237980183a0b28.zip |
-fix typos
Diffstat (limited to 'src/identity/test_identity.c')
-rw-r--r-- | src/identity/test_identity.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/identity/test_identity.c b/src/identity/test_identity.c index 4677949f9..02bf341e8 100644 --- a/src/identity/test_identity.c +++ b/src/identity/test_identity.c | |||
@@ -60,16 +60,16 @@ static GNUNET_SCHEDULER_TaskIdentifier endbadly_task; | |||
60 | static void | 60 | static void |
61 | cleanup () | 61 | cleanup () |
62 | { | 62 | { |
63 | if (NULL != h) | ||
64 | { | ||
65 | GNUNET_IDENTITY_disconnect (h); | ||
66 | h = NULL; | ||
67 | } | ||
68 | if (NULL != op) | 63 | if (NULL != op) |
69 | { | 64 | { |
70 | GNUNET_IDENTITY_cancel (op); | 65 | GNUNET_IDENTITY_cancel (op); |
71 | op = NULL; | 66 | op = NULL; |
72 | } | 67 | } |
68 | if (NULL != h) | ||
69 | { | ||
70 | GNUNET_IDENTITY_disconnect (h); | ||
71 | h = NULL; | ||
72 | } | ||
73 | GNUNET_SCHEDULER_shutdown (); | 73 | GNUNET_SCHEDULER_shutdown (); |
74 | } | 74 | } |
75 | 75 | ||
@@ -113,7 +113,7 @@ end () | |||
113 | GNUNET_SCHEDULER_cancel (endbadly_task); | 113 | GNUNET_SCHEDULER_cancel (endbadly_task); |
114 | endbadly_task = GNUNET_SCHEDULER_NO_TASK; | 114 | endbadly_task = GNUNET_SCHEDULER_NO_TASK; |
115 | } | 115 | } |
116 | GNUNET_SCHEDULER_add_now (&end, NULL); | 116 | GNUNET_SCHEDULER_add_now (&end_normally, NULL); |
117 | } | 117 | } |
118 | 118 | ||
119 | 119 | ||
@@ -155,11 +155,11 @@ create_cb (void *cls, | |||
155 | const char *identifier) | 155 | const char *identifier) |
156 | { | 156 | { |
157 | op = NULL; | 157 | op = NULL; |
158 | fprintf (stderr, "HERE!\n"); | ||
158 | end (); /* yepee */ | 159 | end (); /* yepee */ |
159 | } | 160 | } |
160 | 161 | ||
161 | 162 | ||
162 | |||
163 | /** | 163 | /** |
164 | * Main function of the test, run from scheduler. | 164 | * Main function of the test, run from scheduler. |
165 | * | 165 | * |
@@ -184,8 +184,6 @@ run (void *cls, | |||
184 | } | 184 | } |
185 | 185 | ||
186 | 186 | ||
187 | |||
188 | |||
189 | int | 187 | int |
190 | main (int argc, char *argv[]) | 188 | main (int argc, char *argv[]) |
191 | { | 189 | { |