diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-08-31 23:26:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-08-31 23:26:18 +0000 |
commit | 3442bea6fe430dd3843f0dddfe39adb40a600a18 (patch) | |
tree | 062c27a6abb8ce4d991f6c24742d4bfbdebc2481 /src/util/test_strings.c | |
parent | fa549db57599c0148d91f386889cafad07b223ad (diff) | |
download | gnunet-3442bea6fe430dd3843f0dddfe39adb40a600a18.tar.gz gnunet-3442bea6fe430dd3843f0dddfe39adb40a600a18.zip |
cleaner
Diffstat (limited to 'src/util/test_strings.c')
-rw-r--r-- | src/util/test_strings.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/util/test_strings.c b/src/util/test_strings.c index fce40362c..abd147300 100644 --- a/src/util/test_strings.c +++ b/src/util/test_strings.c | |||
@@ -37,6 +37,7 @@ check () | |||
37 | char *r; | 37 | char *r; |
38 | char *b; | 38 | char *b; |
39 | struct GNUNET_TIME_Absolute at; | 39 | struct GNUNET_TIME_Absolute at; |
40 | const char *hdir; | ||
40 | 41 | ||
41 | sprintf (buf, "4 %s", _( /* size unit */ "b")); | 42 | sprintf (buf, "4 %s", _( /* size unit */ "b")); |
42 | b = GNUNET_STRINGS_byte_size_fancy (4); | 43 | b = GNUNET_STRINGS_byte_size_fancy (4); |
@@ -65,16 +66,15 @@ check () | |||
65 | (GNUNET_TIME_UNIT_MILLISECONDS, | 66 | (GNUNET_TIME_UNIT_MILLISECONDS, |
66 | 7 * 60 * 60 * 1000)); | 67 | 7 * 60 * 60 * 1000)); |
67 | WANT (buf, b); | 68 | WANT (buf, b); |
68 | GNUNET_snprintf (buf, | ||
69 | sizeof (buf), | ||
70 | "%s%s", | ||
71 | getenv ( | ||
72 | #ifndef MINGW | 69 | #ifndef MINGW |
73 | "HOME" | 70 | hdir = getenv ("HOME"); |
74 | #else | 71 | #else |
75 | "USERPROFILE" | 72 | hdir = getenv ("USERPROFILE"); |
76 | #endif | 73 | #endif |
77 | ), | 74 | GNUNET_snprintf (buf, |
75 | sizeof (buf), | ||
76 | "%s%s", | ||
77 | hdir, | ||
78 | DIR_SEPARATOR_STR); | 78 | DIR_SEPARATOR_STR); |
79 | b = GNUNET_STRINGS_filename_expand ("~"); | 79 | b = GNUNET_STRINGS_filename_expand ("~"); |
80 | WANT (buf, b); | 80 | WANT (buf, b); |