remove most redundant includes of sys/stat.h; it's included in nano.h,

so it doesn't need to be included in files that include nano.h


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2053 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2004-11-04 03:53:11 +00:00
parent 164c79883b
commit 84d0d59cbb
7 changed files with 4 additions and 6 deletions

View File

@ -105,6 +105,9 @@ CVS code -
get_totals(); changes to write_marked(), do_int_spell_fix(),
do_alt_speller(), handle_sigwinch(), and do_replace_loop().
(DLR)
- Remove most redundant includes of sys/stat.h. It's included
in nano.h, so it doesn't need to be included in files that
include nano.h. (DLR)
- files.c:
do_insertfile()
- Simplify by reusing variables whereever possible, and add a

View File

@ -25,7 +25,6 @@
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "proto.h"
#include "nano.h"

View File

@ -26,7 +26,6 @@
#include <stdio.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <utime.h>
#include <fcntl.h>
#include <errno.h>

View File

@ -23,7 +23,6 @@
#include <stdlib.h>
#include <assert.h>
#include <sys/stat.h>
#include "proto.h"
#include "nano.h"

View File

@ -28,7 +28,6 @@
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/param.h>
#include <sys/wait.h>

View File

@ -21,8 +21,8 @@
/* Externs. */
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_REGEX_H
#include <regex.h>
#endif

View File

@ -27,7 +27,6 @@
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <pwd.h>
#include <ctype.h>