diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2012-12-22 22:38:26 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2012-12-22 22:38:26 +0100 |
commit | c7bb19c55c7a902e25bdd33b0d49a2ddcf62e07a (patch) | |
tree | b3a75ef2719bc2f334041460fd21fbdf86a23a82 /tests/test_common.c | |
parent | d336cd6b429f8ce40c58ea287f79bbc7c23d0966 (diff) |
update C coding style to a more commonly used style
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1873 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'tests/test_common.c')
-rw-r--r-- | tests/test_common.c | 16 |
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 */ |