From bda50f104bc88c4bcf576c34a7c8d2719fed71ba Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 14 Aug 1999 07:10:19 +0000 Subject: [PATCH] (time): Don't declare if defined. (extr_init): Remove unneeded cast around 0 arg to time. --- src/extract.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/extract.c b/src/extract.c index b3f06dc..27e6e58 100644 --- a/src/extract.c +++ b/src/extract.c @@ -1,5 +1,5 @@ /* Extract files from a tar archive. - Copyright (C) 1988, 92,93,94,96,97,98, 1999 Free Software Foundation, Inc. + Copyright 1988, 92,93,94,96,97,98, 1999 Free Software Foundation, Inc. Written by John Gilmore, on 1985-11-19. This program is free software; you can redistribute it and/or modify it @@ -19,7 +19,9 @@ #include "system.h" #include +#ifndef time time_t time (); +#endif #if HAVE_UTIME_H # include @@ -63,7 +65,7 @@ static struct delayed_set_stat *delayed_set_stat_head; void extr_init (void) { - now = time ((time_t *) 0); + now = time (0); we_are_root = geteuid () == 0; /* Option -p clears the kernel umask, so it does not affect proper @@ -447,15 +449,14 @@ extract_archive (void) skipcrud = 0; while (!absolute_names_option && CURRENT_FILE_NAME[0] == '/') { - static int warned_once = 0; + static int warned_once; - skipcrud++; /* force relative path */ if (!warned_once) { warned_once = 1; - WARN ((0, 0, _("\ -Removing leading `/' from absolute path names in the archive"))); + WARN ((0, 0, _("Removing leading `/' from archive names"))); } + skipcrud++; /* force relative path */ } /* Take a safety backup of a previously existing file. */ -- 2.45.2