From: Paul Eggert Date: Sat, 14 Aug 1999 07:10:19 +0000 (+0000) Subject: (time): Don't declare if defined. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=bda50f104bc88c4bcf576c34a7c8d2719fed71ba;p=chaz%2Ftar (time): Don't declare if defined. (extr_init): Remove unneeded cast around 0 arg to time. --- 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. */