Print this page
remove support for non-ANSI compilation

@@ -17,10 +17,12 @@
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
 /*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /*      Copyright (c) 1988 AT&T */

@@ -69,12 +71,10 @@
 
         /* low 4 bits of sp_flag for counting failed login attempts */
 #define FAILCOUNT_MASK 0xF
 };
 
-#if defined(__STDC__)
-
 #ifndef _STDIO_H
 #include <stdio.h>
 #endif
 
 /* Declare all shadow password functions */

@@ -91,21 +91,10 @@
 
 extern int      putspent(const struct spwd *, FILE *);
 extern int      lckpwdf(void);
 extern int      ulckpwdf(void);
 
-#else
-
-/* Declare all shadow password functions */
-
-struct spwd     *getspent_r(), *fgetspent_r(), *getspnam_r();
-void            setspent(), endspent();
-struct spwd     *getspent(), *fgetspent(), *getspnam(); /* MT-unsafe */
-int             putspent(), lckpwdf(), ulckpwdf();
-
-#endif
-
 #ifdef  __cplusplus
 }
 #endif
 
 #endif  /* _SHADOW_H */