diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-26 09:54:21 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-26 09:54:21 +0100 |
commit | 2120037b332c32106dab2dcda0f6ff56115173c7 (patch) | |
tree | 1317baec56aa42d5d1075c7825a6f7a5e9a6607d | |
parent | 6eb89731fdfa66481e4f0b1fc3fca6139d99039f (diff) | |
download | gnunet-2120037b332c32106dab2dcda0f6ff56115173c7.tar.gz gnunet-2120037b332c32106dab2dcda0f6ff56115173c7.zip |
unset XDG vars
-rw-r--r-- | src/rps/gnunet-rps-profiler.c | 2 | ||||
-rw-r--r-- | src/testbed/gnunet-testbed-profiler.c | 32 |
2 files changed, 16 insertions, 18 deletions
diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c index cdf555432..9aa786334 100644 --- a/src/rps/gnunet-rps-profiler.c +++ b/src/rps/gnunet-rps-profiler.c | |||
@@ -2976,6 +2976,8 @@ main (int argc, char *argv[]) | |||
2976 | GNUNET_GETOPT_OPTION_END | 2976 | GNUNET_GETOPT_OPTION_END |
2977 | }; | 2977 | }; |
2978 | 2978 | ||
2979 | unsetenv ("XDG_DATA_HOME"); | ||
2980 | unsetenv ("XDG_CONFIG_HOME"); | ||
2979 | //if (GNUNET_OK != | 2981 | //if (GNUNET_OK != |
2980 | // GNUNET_STRINGS_get_utf8_args (argc, argv, | 2982 | // GNUNET_STRINGS_get_utf8_args (argc, argv, |
2981 | // &argc, &argv)) | 2983 | // &argc, &argv)) |
diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c index 8b19d7431..d9401286c 100644 --- a/src/testbed/gnunet-testbed-profiler.c +++ b/src/testbed/gnunet-testbed-profiler.c | |||
@@ -11,7 +11,7 @@ | |||
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 | ||
@@ -276,27 +276,23 @@ int | |||
276 | main (int argc, char *const *argv) | 276 | main (int argc, char *const *argv) |
277 | { | 277 | { |
278 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 278 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
279 | |||
280 | GNUNET_GETOPT_option_uint ('p', | 279 | GNUNET_GETOPT_option_uint ('p', |
281 | "num-peers", | 280 | "num-peers", |
282 | "COUNT", | 281 | "COUNT", |
283 | gettext_noop ("create COUNT number of peers"), | 282 | gettext_noop ("create COUNT number of peers"), |
284 | &num_peers), | 283 | &num_peers), |
285 | |||
286 | GNUNET_GETOPT_option_uint ('e', | 284 | GNUNET_GETOPT_option_uint ('e', |
287 | "num-errors", | 285 | "num-errors", |
288 | "COUNT", | 286 | "COUNT", |
289 | gettext_noop ("tolerate COUNT number of continious timeout failures"), | 287 | gettext_noop ("tolerate COUNT number of continious timeout failures"), |
290 | &num_cont_fails), | 288 | &num_cont_fails), |
291 | |||
292 | GNUNET_GETOPT_option_flag ('n', | 289 | GNUNET_GETOPT_option_flag ('n', |
293 | "non-interactive", | 290 | "non-interactive", |
294 | gettext_noop ("run profiler in non-interactive mode where upon " | 291 | gettext_noop ("run profiler in non-interactive mode where upon " |
295 | "testbed setup the profiler does not wait for a " | 292 | "testbed setup the profiler does not wait for a " |
296 | "keystroke but continues to run until a termination " | 293 | "keystroke but continues to run until a termination " |
297 | "signal is received"), | 294 | "signal is received"), |
298 | &noninteractive), | 295 | &noninteractive), |
299 | |||
300 | #if !ENABLE_SUPERMUC | 296 | #if !ENABLE_SUPERMUC |
301 | GNUNET_GETOPT_option_string ('H', | 297 | GNUNET_GETOPT_option_string ('H', |
302 | "hosts", | 298 | "hosts", |