Print this page
remove support for non-ANSI compilation
*** 17,26 ****
--- 17,28 ----
* 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,80 ****
/* 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 */
--- 71,80 ----
*** 91,111 ****
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 */
--- 91,100 ----