Cleanup a bit includes

This commit is contained in:
Baptiste Daroussin 2015-08-02 13:22:46 +00:00
parent b8a5086ef0
commit bcbdb01e56
12 changed files with 43 additions and 52 deletions

View File

@ -29,17 +29,12 @@ static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <dirent.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h>
#include <dirent.h>
#include "pw.h"
#include "pwupd.h"

View File

@ -29,13 +29,11 @@ static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <err.h>
#include <grp.h>
#include <libutil.h>
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>
#include "pwupd.h"

View File

@ -29,12 +29,11 @@ static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <stdio.h>
#include <ctype.h>
#include <err.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <xlocale.h>
#include <err.h>
#include "psdate.h"

View File

@ -32,9 +32,10 @@ static const char rcsid[] =
#include <err.h>
#include <fcntl.h>
#include <locale.h>
#include <paths.h>
#include <stdbool.h>
#include <sys/wait.h>
#include <string.h>
#include <sysexits.h>
#include <unistd.h>
#include "pw.h"
const char *Modes[] = {

View File

@ -26,23 +26,13 @@
* $FreeBSD$
*/
#include <sys/stat.h>
#define _WITH_GETLINE
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
#include <inttypes.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h>
#include <pwd.h>
#include <grp.h>
#include <sys/queue.h>
#include <sysexits.h>
#include "psdate.h"
#include "pwupd.h"
enum _mode

View File

@ -31,11 +31,11 @@ static const char rcsid[] =
#include <sys/types.h>
#include <sys/sbuf.h>
#include <inttypes.h>
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
#include <err.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include "pw.h"

View File

@ -32,10 +32,10 @@ static const char rcsid[] =
#include <ctype.h>
#include <err.h>
#include <grp.h>
#include <inttypes.h>
#include <libutil.h>
#include <paths.h>
#include <stdbool.h>
#include <string.h>
#include <sysexits.h>
#include <termios.h>
#include <unistd.h>

View File

@ -30,6 +30,8 @@ static const char rcsid[] =
#endif /* not lint */
#include <fcntl.h>
#include <string.h>
#include <stdarg.h>
#include "pw.h"

View File

@ -30,6 +30,7 @@ static const char rcsid[] =
#endif /* not lint */
#include <sys/types.h>
#include <err.h>
#include <pwd.h>
#include <libutil.h>

View File

@ -30,23 +30,28 @@ static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <sys/param.h>
#include <sys/resource.h>
#include <sys/time.h>
#include <sys/types.h>
#include <ctype.h>
#include <dirent.h>
#include <err.h>
#include <fcntl.h>
#include <inttypes.h>
#include <sys/param.h>
#include <dirent.h>
#include <paths.h>
#include <termios.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <login_cap.h>
#include <pwd.h>
#include <grp.h>
#include <pwd.h>
#include <libutil.h>
#include <login_cap.h>
#include <paths.h>
#include <string.h>
#include <sysexits.h>
#include <termios.h>
#include <unistd.h>
#include "pw.h"
#include "bitmap.h"
#include "psdate.h"
#define LOGNAMESIZE (MAXLOGNAME-1)

View File

@ -35,6 +35,8 @@ __FBSDID("$FreeBSD$");
#include <sysexits.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "pw.h"

View File

@ -29,18 +29,16 @@ static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <sys/wait.h>
#include <err.h>
#include <errno.h>
#include <pwd.h>
#include <libutil.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pwd.h>
#include <libutil.h>
#include <errno.h>
#include <err.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h>
#include <sys/wait.h>
#include "pwupd.h"