lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1223 - nss-pam-ldapd/tests

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

nss-pam-ldapd commit: r1223 - nss-pam-ldapd/tests



Author: arthur
Date: Tue Sep 28 21:39:36 2010
New Revision: 1223
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1223

Log:
also switch to nss_status_t for test code

Modified:
   nss-pam-ldapd/tests/test_aliases.c
   nss-pam-ldapd/tests/test_ethers.c
   nss-pam-ldapd/tests/test_group.c
   nss-pam-ldapd/tests/test_hosts.c
   nss-pam-ldapd/tests/test_netgroup.c
   nss-pam-ldapd/tests/test_networks.c
   nss-pam-ldapd/tests/test_passwd.c
   nss-pam-ldapd/tests/test_protocols.c
   nss-pam-ldapd/tests/test_rpc.c
   nss-pam-ldapd/tests/test_services.c
   nss-pam-ldapd/tests/test_shadow.c

Modified: nss-pam-ldapd/tests/test_aliases.c
==============================================================================
--- nss-pam-ldapd/tests/test_aliases.c  Tue Sep 28 21:35:12 2010        (r1222)
+++ nss-pam-ldapd/tests/test_aliases.c  Tue Sep 28 21:39:36 2010        (r1223)
@@ -32,7 +32,7 @@
 #include "nss/prototypes.h"
 #include "compat/attrs.h"
 
-static char *nssstatus(enum nss_status retv)
+static char *nssstatus(nss_status_t retv)
 {
   switch(retv)
   {
@@ -64,7 +64,7 @@
 {
   struct aliasent aliasresult;
   char buffer[1024];
-  enum nss_status res;
+  nss_status_t res;
   int errnocp;
 
   /* test getaliasbyname() */

Modified: nss-pam-ldapd/tests/test_ethers.c
==============================================================================
--- nss-pam-ldapd/tests/test_ethers.c   Tue Sep 28 21:35:12 2010        (r1222)
+++ nss-pam-ldapd/tests/test_ethers.c   Tue Sep 28 21:39:36 2010        (r1223)
@@ -31,7 +31,7 @@
 
 #include "nss/prototypes.h"
 
-static char *nssstatus(enum nss_status retv)
+static char *nssstatus(nss_status_t retv)
 {
   switch(retv)
   {
@@ -58,7 +58,7 @@
 {
   struct etherent etherresult;
   char buffer[1024];
-  enum nss_status res;
+  nss_status_t res;
   int errnocp;
 
   /* test ether_hostton() */

Modified: nss-pam-ldapd/tests/test_group.c
==============================================================================
--- nss-pam-ldapd/tests/test_group.c    Tue Sep 28 21:35:12 2010        (r1222)
+++ nss-pam-ldapd/tests/test_group.c    Tue Sep 28 21:39:36 2010        (r1223)
@@ -31,7 +31,7 @@
 
 #include "nss/prototypes.h"
 
-static char *nssstatus(enum nss_status retv)
+static char *nssstatus(nss_status_t retv)
 {
   switch(retv)
   {
@@ -64,7 +64,7 @@
 {
   struct group groupresult;
   char buffer[32*1024];
-  enum nss_status res;
+  nss_status_t res;
   int errnocp=0;
   long int start=0,size=40;
   gid_t *gidlist=(gid_t *)buffer;

Modified: nss-pam-ldapd/tests/test_hosts.c
==============================================================================
--- nss-pam-ldapd/tests/test_hosts.c    Tue Sep 28 21:35:12 2010        (r1222)
+++ nss-pam-ldapd/tests/test_hosts.c    Tue Sep 28 21:39:36 2010        (r1223)
@@ -29,7 +29,7 @@
 
 #include "nss/prototypes.h"
 
-static char *nssstatus(enum nss_status retv)
+static char *nssstatus(nss_status_t retv)
 {
   switch(retv)
   {
@@ -84,7 +84,7 @@
 {
   struct hostent hostresult;
   char buffer[1024];
-  enum nss_status res;
+  nss_status_t res;
   int errnocp,h_errnocp;
   char address[1024];
 

Modified: nss-pam-ldapd/tests/test_netgroup.c
==============================================================================
--- nss-pam-ldapd/tests/test_netgroup.c Tue Sep 28 21:35:12 2010        (r1222)
+++ nss-pam-ldapd/tests/test_netgroup.c Tue Sep 28 21:39:36 2010        (r1223)
@@ -31,7 +31,7 @@
 
 #include "nss/prototypes.h"
 
-static char *nssstatus(enum nss_status retv)
+static char *nssstatus(nss_status_t retv)
 {
   switch(retv)
   {
@@ -78,7 +78,7 @@
 {
   struct __netgrent netgroupresult;
   char buffer[1024];
-  enum nss_status res;
+  nss_status_t res;
   int errnocp;
 
   /* test {set,get,end}netgrent() */

Modified: nss-pam-ldapd/tests/test_networks.c
==============================================================================
--- nss-pam-ldapd/tests/test_networks.c Tue Sep 28 21:35:12 2010        (r1222)
+++ nss-pam-ldapd/tests/test_networks.c Tue Sep 28 21:39:36 2010        (r1223)
@@ -29,7 +29,7 @@
 
 #include "nss/prototypes.h"
 
-static char *nssstatus(enum nss_status retv)
+static char *nssstatus(nss_status_t retv)
 {
   switch(retv)
   {
@@ -67,7 +67,7 @@
 {
   struct netent netresult;
   char buffer[1024];
-  enum nss_status res;
+  nss_status_t res;
   int errnocp,h_errnocp;
 
   /* test getnetbyname() */

Modified: nss-pam-ldapd/tests/test_passwd.c
==============================================================================
--- nss-pam-ldapd/tests/test_passwd.c   Tue Sep 28 21:35:12 2010        (r1222)
+++ nss-pam-ldapd/tests/test_passwd.c   Tue Sep 28 21:39:36 2010        (r1223)
@@ -31,7 +31,7 @@
 
 #include "nss/prototypes.h"
 
-static char *nssstatus(enum nss_status retv)
+static char *nssstatus(nss_status_t retv)
 {
   switch(retv)
   {
@@ -64,7 +64,7 @@
 {
   struct passwd passwdresult;
   char buffer[1024];
-  enum nss_status res;
+  nss_status_t res;
   int errnocp;
 
   /* test getpwnam() */

Modified: nss-pam-ldapd/tests/test_protocols.c
==============================================================================
--- nss-pam-ldapd/tests/test_protocols.c        Tue Sep 28 21:35:12 2010        
(r1222)
+++ nss-pam-ldapd/tests/test_protocols.c        Tue Sep 28 21:39:36 2010        
(r1223)
@@ -31,7 +31,7 @@
 
 #include "nss/prototypes.h"
 
-static char *nssstatus(enum nss_status retv)
+static char *nssstatus(nss_status_t retv)
 {
   switch(retv)
   {
@@ -63,7 +63,7 @@
 {
   struct protoent protoresult;
   char buffer[1024];
-  enum nss_status res;
+  nss_status_t res;
   int errnocp;
 
   /* test getprotobyname() */

Modified: nss-pam-ldapd/tests/test_rpc.c
==============================================================================
--- nss-pam-ldapd/tests/test_rpc.c      Tue Sep 28 21:35:12 2010        (r1222)
+++ nss-pam-ldapd/tests/test_rpc.c      Tue Sep 28 21:39:36 2010        (r1223)
@@ -31,7 +31,7 @@
 
 #include "nss/prototypes.h"
 
-static char *nssstatus(enum nss_status retv)
+static char *nssstatus(nss_status_t retv)
 {
   switch(retv)
   {
@@ -63,7 +63,7 @@
 {
   struct rpcent rpcresult;
   char buffer[1024];
-  enum nss_status res;
+  nss_status_t res;
   int errnocp;
 
   /* test getrpcbyname() */

Modified: nss-pam-ldapd/tests/test_services.c
==============================================================================
--- nss-pam-ldapd/tests/test_services.c Tue Sep 28 21:35:12 2010        (r1222)
+++ nss-pam-ldapd/tests/test_services.c Tue Sep 28 21:39:36 2010        (r1223)
@@ -31,7 +31,7 @@
 
 #include "nss/prototypes.h"
 
-static char *nssstatus(enum nss_status retv)
+static char *nssstatus(nss_status_t retv)
 {
   switch(retv)
   {
@@ -65,7 +65,7 @@
 {
   struct servent servresult;
   char buffer[1024];
-  enum nss_status res;
+  nss_status_t res;
   int errnocp;
 
   /* test getservbyname() */

Modified: nss-pam-ldapd/tests/test_shadow.c
==============================================================================
--- nss-pam-ldapd/tests/test_shadow.c   Tue Sep 28 21:35:12 2010        (r1222)
+++ nss-pam-ldapd/tests/test_shadow.c   Tue Sep 28 21:39:36 2010        (r1223)
@@ -31,7 +31,7 @@
 
 #include "nss/prototypes.h"
 
-static char *nssstatus(enum nss_status retv)
+static char *nssstatus(nss_status_t retv)
 {
   switch(retv)
   {
@@ -67,7 +67,7 @@
 {
   struct spwd shadowresult;
   char buffer[1024];
-  enum nss_status res;
+  nss_status_t res;
   int errnocp;
 
   /* test getspnam() */
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits