tar: update ancient configure cruft

* configure.ac: Use AC_PROG_CC_STDC, not just AC_PROG_CC.
Remove obsolete macros AC_ISC_POSIX, AC_HEADER_SYS_WAIT,
AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC, AC_TYPE_SIGNAL,
AC_TYPE_SIZE_T.
* lib/prepargs.c (IN_CTYPE_DOMAIN): Remove.  All uses removed.
* src/list.c (from_header): Use isspace, not ISSPACE.
* src/system.c (pipe_handler, sys_exec_info_script):
* src/tar.c (sigstat):
Use void, not RETSIGTYPE.
This commit is contained in:
Paul Eggert
2014-01-03 11:48:57 -08:00
parent 49f3145092
commit 5c5f62e0dc
5 changed files with 11 additions and 29 deletions
+2 -2
View File
@@ -723,7 +723,7 @@ from_header (char const *where0, size_t digs, char const *type,
type));
return -1;
}
if (!ISSPACE ((unsigned char) *where))
if (!isspace ((unsigned char) *where))
break;
where++;
}
@@ -861,7 +861,7 @@ from_header (char const *where0, size_t digs, char const *type,
value = -value;
}
if (where != lim && *where && !ISSPACE ((unsigned char) *where))
if (where != lim && *where && !isspace ((unsigned char) *where))
{
if (type)
{
+2 -2
View File
@@ -720,7 +720,7 @@ stat_to_env (char *name, char type, struct tar_stat_info *st)
}
static pid_t global_pid;
static RETSIGTYPE (*pipe_handler) (int sig);
static void (*pipe_handler) (int sig);
int
sys_exec_command (char *file_name, int typechar, struct tar_stat_info *st)
@@ -788,7 +788,7 @@ sys_exec_info_script (const char **archive_name, int volume_number)
pid_t pid;
char uintbuf[UINTMAX_STRSIZE_BOUND];
int p[2];
static RETSIGTYPE (*saved_handler) (int sig);
static void (*saved_handler) (int sig);
xpipe (p);
saved_handler = signal (SIGPIPE, SIG_IGN);
+4 -4
View File
@@ -990,7 +990,7 @@ set_use_compress_program_option (const char *string)
use_compress_program_option = string;
}
static RETSIGTYPE
static void
sigstat (int signo)
{
compute_duration ();
@@ -1775,7 +1775,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
case KEEP_DIRECTORY_SYMLINK_OPTION:
keep_directory_symlink_option = true;
break;
case KEEP_NEWER_FILES_OPTION:
old_files_option = KEEP_NEWER_FILES;
break;
@@ -2220,7 +2220,7 @@ static int subcommand_class[] = {
/* Return t if the subcommand_option is in class(es) f */
#define IS_SUBCOMMAND_CLASS(f) (subcommand_class[subcommand_option] & (f))
static struct tar_args args;
static void
@@ -2493,7 +2493,7 @@ decode_options (int argc, char **argv)
_("--%s option cannot be used with %s"),
starting_file_option ? "starting-file" : "same-order",
subcommand_string (subcommand_option)));
/* If ready to unlink hierarchies, so we are for simpler files. */
if (recursive_unlink_option)
old_files_option = UNLINK_FIRST_OLD_FILES;