summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-04-25 22:29:28 +0000
committerng0 <ng0@n0.is>2019-04-25 22:29:28 +0000
commit87ec5f76b97d15794a1c17706305080c089d5afd (patch)
tree97a8a1dc9c61b90d93c2f85d8e2357c41c93f0d5
parent5a2043c744571ae72252d5c9c66443121adc22d8 (diff)
test_gnunet_prefix: format
-rw-r--r--contrib/test_gnunet_prefix.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/contrib/test_gnunet_prefix.c b/contrib/test_gnunet_prefix.c
index 1a3c9a7ba..b27ef0b2d 100644
--- a/contrib/test_gnunet_prefix.c
+++ b/contrib/test_gnunet_prefix.c
@@ -11,7 +11,7 @@
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
@@ -28,8 +28,7 @@
int
-main (int argc,
- char **argv)
+main (int argc, char **argv)
{
const char *basename;
const char *dirname;
@@ -37,27 +36,27 @@ main (int argc,
basename = getenv ("GNUNET_PREFIX");
if (NULL == basename)
{
- fprintf (stderr,
- _("Environment variable GNUNET_PREFIX not set\n"));
- fprintf (stderr,
- _("Testcases will not work!\n"));
+ fprintf (stderr, _ ("Environment variable GNUNET_PREFIX not set\n"));
+ fprintf (stderr, _ ("Testcases will not work!\n"));
return 1;
}
- dirname = DIR_SEPARATOR_STR ".." DIR_SEPARATOR_STR "share" DIR_SEPARATOR_STR "gnunet" DIR_SEPARATOR_STR "config.d";
+ dirname = DIR_SEPARATOR_STR ".." DIR_SEPARATOR_STR "share" DIR_SEPARATOR_STR
+ "gnunet" DIR_SEPARATOR_STR "config.d";
{
char tmp[strlen (basename) + strlen (dirname) + 1];
sprintf (tmp, "%s%s", basename, dirname);
if (0 != access (tmp, R_OK))
{
fprintf (stderr,
- _("Failed to access `%s': %s\n"),
- tmp,
- STRERROR (errno));
- fprintf (stderr,
- _("Check that you did run `make install' and that GNUNET_PREFIX='%s' is the correct prefix.\n"),
- basename);
- fprintf (stderr,
- _("Testcases will not work!\n"));
+ _ ("Failed to access `%s': %s\n"),
+ tmp,
+ STRERROR (errno));
+ fprintf (
+ stderr,
+ _ (
+ "Check that you did run `make install' and that GNUNET_PREFIX='%s' is the correct prefix.\n"),
+ basename);
+ fprintf (stderr, _ ("Testcases will not work!\n"));
return 2;
}
}