diff options
Diffstat (limited to 'src/fs/test_fs_start_stop.c')
-rw-r--r-- | src/fs/test_fs_start_stop.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/fs/test_fs_start_stop.c b/src/fs/test_fs_start_stop.c index e20e00996..4e3c17db0 100644 --- a/src/fs/test_fs_start_stop.c +++ b/src/fs/test_fs_start_stop.c | |||
@@ -11,12 +11,12 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @file fs/test_fs_start_stop.c | 21 | * @file fs/test_fs_start_stop.c |
22 | * @brief testcase for fs.c (start-stop only) | 22 | * @brief testcase for fs.c (start-stop only) |
@@ -30,32 +30,32 @@ | |||
30 | 30 | ||
31 | 31 | ||
32 | static void * | 32 | static void * |
33 | progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | 33 | progress_cb(void *cls, const struct GNUNET_FS_ProgressInfo *event) |
34 | { | 34 | { |
35 | return NULL; | 35 | return NULL; |
36 | } | 36 | } |
37 | 37 | ||
38 | 38 | ||
39 | static void | 39 | static void |
40 | run (void *cls, | 40 | run(void *cls, |
41 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 41 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
42 | struct GNUNET_TESTING_Peer *peer) | 42 | struct GNUNET_TESTING_Peer *peer) |
43 | { | 43 | { |
44 | struct GNUNET_FS_Handle *fs; | 44 | struct GNUNET_FS_Handle *fs; |
45 | 45 | ||
46 | fs = GNUNET_FS_start (cfg, "test-fs-start-stop", &progress_cb, NULL, | 46 | fs = GNUNET_FS_start(cfg, "test-fs-start-stop", &progress_cb, NULL, |
47 | GNUNET_FS_FLAGS_NONE, GNUNET_FS_OPTIONS_END); | 47 | GNUNET_FS_FLAGS_NONE, GNUNET_FS_OPTIONS_END); |
48 | GNUNET_assert (NULL != fs); | 48 | GNUNET_assert(NULL != fs); |
49 | GNUNET_FS_stop (fs); | 49 | GNUNET_FS_stop(fs); |
50 | } | 50 | } |
51 | 51 | ||
52 | 52 | ||
53 | int | 53 | int |
54 | main (int argc, char *argv[]) | 54 | main(int argc, char *argv[]) |
55 | { | 55 | { |
56 | if (0 != GNUNET_TESTING_peer_run ("test-fs-start-stop", | 56 | if (0 != GNUNET_TESTING_peer_run("test-fs-start-stop", |
57 | "test_fs_data.conf", | 57 | "test_fs_data.conf", |
58 | &run, NULL)) | 58 | &run, NULL)) |
59 | return 1; | 59 | return 1; |
60 | return 0; | 60 | return 0; |
61 | } | 61 | } |