diff options
Diffstat (limited to 'src/gns/gnunet-gns.c')
-rw-r--r-- | src/gns/gnunet-gns.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/gns/gnunet-gns.c b/src/gns/gnunet-gns.c index 34f6e2c82..463348ed3 100644 --- a/src/gns/gnunet-gns.c +++ b/src/gns/gnunet-gns.c | |||
@@ -2,20 +2,18 @@ | |||
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2012-2013, 2017-2018 GNUnet e.V. | 3 | Copyright (C) 2012-2013, 2017-2018 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | it under the terms of the GNU General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
7 | by the Free Software Foundation; either version 3, or (at your | 7 | by the Free Software Foundation, either version 3 of the License, |
8 | option) any later version. | 8 | or (at your option) any later version. |
9 | 9 | ||
10 | GNUnet is distributed in the hope that it will be useful, but | 10 | GNUnet is distributed in the hope that it will be useful, but |
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 | 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 General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with GNUnet; see the file COPYING. If not, write to the | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
18 | Boston, MA 02110-1301, USA. | ||
19 | */ | 17 | */ |
20 | /** | 18 | /** |
21 | * @file gnunet-gns.c | 19 | * @file gnunet-gns.c |
@@ -67,8 +65,9 @@ static struct GNUNET_GNS_LookupWithTldRequest *lr; | |||
67 | /** | 65 | /** |
68 | * Global return value. | 66 | * Global return value. |
69 | * 0 on success (default), | 67 | * 0 on success (default), |
70 | * 1 on internal failures, 2 on launch failure, | 68 | * 1 on internal failures |
71 | * 3 if the name is not a GNS-supported TLD, | 69 | * 2 on launch failure, |
70 | * 4 if the name is not a GNS-supported TLD, | ||
72 | */ | 71 | */ |
73 | static int global_ret; | 72 | static int global_ret; |
74 | 73 | ||
@@ -116,7 +115,7 @@ process_lookup_result (void *cls, | |||
116 | lr = NULL; | 115 | lr = NULL; |
117 | if (GNUNET_NO == was_gns) | 116 | if (GNUNET_NO == was_gns) |
118 | { | 117 | { |
119 | global_ret = 3; | 118 | global_ret = 4; /* not for GNS */ |
120 | GNUNET_SCHEDULER_shutdown (); | 119 | GNUNET_SCHEDULER_shutdown (); |
121 | return; | 120 | return; |
122 | } | 121 | } |
@@ -185,7 +184,6 @@ run (void *cls, | |||
185 | global_ret = 2; | 184 | global_ret = 2; |
186 | return; | 185 | return; |
187 | } | 186 | } |
188 | |||
189 | GNUNET_SCHEDULER_add_shutdown (&do_shutdown, | 187 | GNUNET_SCHEDULER_add_shutdown (&do_shutdown, |
190 | NULL); | 188 | NULL); |
191 | 189 | ||