lists.arthurdejong.org
RSS feed

nss-pam-ldapd branch master updated. 0.9.2-15-g3288942

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd branch master updated. 0.9.2-15-g3288942



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".

The branch, master has been updated
       via  328894237b24e50b8d39f1fe85f9fa7e2d37e5de (commit)
      from  2b8fbc249e8781290e5a05b338b3bc1b700d05e6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://arthurdejong.org/git/nss-pam-ldapd/commit/?id=328894237b24e50b8d39f1fe85f9fa7e2d37e5de

commit 328894237b24e50b8d39f1fe85f9fa7e2d37e5de
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Sat Jan 4 22:37:06 2014 +0100

    Fix compiler warnings in the myldap test

diff --git a/tests/test_myldap.c b/tests/test_myldap.c
index d95157f..a8cab6b 100644
--- a/tests/test_myldap.c
+++ b/tests/test_myldap.c
@@ -2,7 +2,7 @@
    test_myldap.c - simple test for the myldap module
    This file is part of the nss-pam-ldapd library.
 
-   Copyright (C) 2007, 2008, 2009, 2011, 2012 Arthur de Jong
+   Copyright (C) 2007-2014 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
@@ -120,10 +120,9 @@ static void test_get(void)
   assert(entry != NULL);
   printf("test_myldap: test_get(): got DN %s\n", myldap_get_dn(entry));
   /* get some attribute values */
-  (void)myldap_get_values(entry, "gidNumber");
-  (void)myldap_get_values(entry, "userPassword");
-  (void)myldap_get_values(entry, "memberUid");
-  (void)myldap_get_values(entry, "member");
+  assert(myldap_get_values(entry, "gidNumber") != NULL);
+  assert(myldap_get_values(entry, "memberUid") == NULL);
+  assert(myldap_get_values(entry, "member") != NULL);
   /* perform another search */
   printf("test_myldap: test_get(): doing get...\n");
   search2 = myldap_search(session, "cn=Test User2,ou=people,dc=test,dc=tld",
@@ -413,7 +412,7 @@ static void test_escape(void)
 }
 
 /* the main program... */
-int main(int argc, char *argv[])
+int main(int UNUSED(argc), char UNUSED(*argv[]))
 {
   char *srcdir;
   char fname[100];

-----------------------------------------------------------------------

Summary of changes:
 tests/test_myldap.c |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
nss-pam-ldapd
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/