diff options
Diffstat (limited to 'src/arm/test_gnunet_service_manager.c')
-rw-r--r-- | src/arm/test_gnunet_service_manager.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/arm/test_gnunet_service_manager.c b/src/arm/test_gnunet_service_manager.c index 4c4de9242..4f863ed19 100644 --- a/src/arm/test_gnunet_service_manager.c +++ b/src/arm/test_gnunet_service_manager.c | |||
@@ -101,9 +101,9 @@ arm_notify (void *cls, int success) | |||
101 | } | 101 | } |
102 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Trying to resolve our own hostname!\n"); | 102 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Trying to resolve our own hostname!\n"); |
103 | /* connect to the resolver service */ | 103 | /* connect to the resolver service */ |
104 | if (NULL == GNUNET_RESOLVER_hostname_resolve (AF_UNSPEC, | 104 | if (NULL == |
105 | TIMEOUT, | 105 | GNUNET_RESOLVER_hostname_resolve (AF_UNSPEC, TIMEOUT, &hostNameResolveCB, |
106 | &hostNameResolveCB, NULL)) | 106 | NULL)) |
107 | { | 107 | { |
108 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 108 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
109 | "Unable initiate connection to resolver service\n"); | 109 | "Unable initiate connection to resolver service\n"); |
@@ -116,9 +116,8 @@ arm_notify (void *cls, int success) | |||
116 | 116 | ||
117 | 117 | ||
118 | static void | 118 | static void |
119 | run (void *cls, | 119 | run (void *cls, char *const *args, const char *cfgfile, |
120 | char *const *args, | 120 | const struct GNUNET_CONFIGURATION_Handle *c) |
121 | const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *c) | ||
122 | { | 121 | { |
123 | cfg = c; | 122 | cfg = c; |
124 | #if START_ARM | 123 | #if START_ARM |
@@ -146,8 +145,7 @@ check () | |||
146 | }; | 145 | }; |
147 | GNUNET_assert (GNUNET_OK == | 146 | GNUNET_assert (GNUNET_OK == |
148 | GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, | 147 | GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, |
149 | argv, | 148 | argv, "test-gnunet-service-manager", |
150 | "test-gnunet-service-manager", | ||
151 | "nohelp", options, &run, NULL)); | 149 | "nohelp", options, &run, NULL)); |
152 | } | 150 | } |
153 | 151 | ||
@@ -159,8 +157,8 @@ main (int argc, char *argv[]) | |||
159 | 157 | ||
160 | if (0 != gethostname (hostname, sizeof (hostname) - 1)) | 158 | if (0 != gethostname (hostname, sizeof (hostname) - 1)) |
161 | { | 159 | { |
162 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR | | 160 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, |
163 | GNUNET_ERROR_TYPE_BULK, "gethostname"); | 161 | "gethostname"); |
164 | fprintf (stderr, | 162 | fprintf (stderr, |
165 | "Failed to determine my own hostname, testcase not run.\n"); | 163 | "Failed to determine my own hostname, testcase not run.\n"); |
166 | return 0; | 164 | return 0; |