Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_common.c')
-rw-r--r--tests/test_common.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_common.c b/tests/test_common.c
index f065f13..f1db304 100644
--- a/tests/test_common.c
+++ b/tests/test_common.c
@@ -2,7 +2,7 @@
test_common.c - simple test for the common module
This file is part of the nss-pam-ldapd library.
- Copyright (C) 2008, 2009, 2011 Arthur de Jong
+ Copyright (C) 2008, 2009, 2011, 2012 Arthur de Jong
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -38,20 +38,20 @@ static void test_isvalidname(void)
assert(isvalidname("foo\\bar"));
assert(!isvalidname("\\foo\\bar"));
assert(!isvalidname("foo\\bar\\"));
- assert(isvalidname("me")); /* try short name */
+ assert(isvalidname("me")); /* try short name */
}
/* the main program... */
-int main(int UNUSED(argc),char UNUSED(*argv[]))
+int main(int UNUSED(argc), char UNUSED(*argv[]))
{
char *srcdir;
char fname[100];
/* build the name of the file */
- srcdir=getenv("srcdir");
- if (srcdir==NULL)
- srcdir=".";
- snprintf(fname,sizeof(fname),"%s/nslcd-test.conf",srcdir);
- fname[sizeof(fname)-1]='\0';
+ srcdir = getenv("srcdir");
+ if (srcdir == NULL)
+ srcdir = ".";
+ snprintf(fname, sizeof(fname), "%s/nslcd-test.conf", srcdir);
+ fname[sizeof(fname) - 1] = '\0';
/* initialize configuration */
cfg_init(fname);
/* partially initialize logging */