summaryrefslogtreecommitdiffstats
path: root/bin/pax/sel_subs.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-02-02 06:48:10 +0000
committerimp <imp@FreeBSD.org>2002-02-02 06:48:10 +0000
commit50014e35418ca00d25ea852fc4f94acf80be4df3 (patch)
treef26db6e85c29b2244f601bdb366caa7f26a96c24 /bin/pax/sel_subs.c
parent3fc8df52e3856eeac730574d5ae122806dd1e1ef (diff)
downloadFreeBSD-src-50014e35418ca00d25ea852fc4f94acf80be4df3.zip
FreeBSD-src-50014e35418ca00d25ea852fc4f94acf80be4df3.tar.gz
o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are.
Diffstat (limited to 'bin/pax/sel_subs.c')
-rw-r--r--bin/pax/sel_subs.c57
1 files changed, 4 insertions, 53 deletions
diff --git a/bin/pax/sel_subs.c b/bin/pax/sel_subs.c
index 639e532..80fb213 100644
--- a/bin/pax/sel_subs.c
+++ b/bin/pax/sel_subs.c
@@ -57,10 +57,10 @@ static const char rcsid[] =
#include "sel_subs.h"
#include "extern.h"
-static int str_sec __P((register char *, time_t *));
-static int usr_match __P((register ARCHD *));
-static int grp_match __P((register ARCHD *));
-static int trng_match __P((register ARCHD *));
+static int str_sec(register char *, time_t *);
+static int usr_match(register ARCHD *);
+static int grp_match(register ARCHD *);
+static int trng_match(register ARCHD *);
static TIME_RNG *trhead = NULL; /* time range list head */
static TIME_RNG *trtail = NULL; /* time range list tail */
@@ -78,14 +78,8 @@ static GRPT **grptb = NULL; /* group selection table */
* 0 if this archive member should be processed, 1 if it should be skipped
*/
-#ifdef __STDC__
int
sel_chk(register ARCHD *arcn)
-#else
-int
-sel_chk(arcn)
- register ARCHD *arcn;
-#endif
{
if (((usrtb != NULL) && usr_match(arcn)) ||
((grptb != NULL) && grp_match(arcn)) ||
@@ -109,14 +103,8 @@ sel_chk(arcn)
* 0 if added ok, -1 otherwise;
*/
-#ifdef __STDC__
int
usr_add(register char *str)
-#else
-int
-usr_add(str)
- register char *str;
-#endif
{
register u_int indx;
register USRT *pt;
@@ -188,14 +176,8 @@ usr_add(str)
* 0 if this archive member should be processed, 1 if it should be skipped
*/
-#ifdef __STDC__
static int
usr_match(register ARCHD *arcn)
-#else
-static int
-usr_match(arcn)
- register ARCHD *arcn;
-#endif
{
register USRT *pt;
@@ -222,14 +204,8 @@ usr_match(arcn)
* 0 if added ok, -1 otherwise;
*/
-#ifdef __STDC__
int
grp_add(register char *str)
-#else
-int
-grp_add(str)
- register char *str;
-#endif
{
register u_int indx;
register GRPT *pt;
@@ -301,14 +277,8 @@ grp_add(str)
* 0 if this archive member should be processed, 1 if it should be skipped
*/
-#ifdef __STDC__
static int
grp_match(register ARCHD *arcn)
-#else
-static int
-grp_match(arcn)
- register ARCHD *arcn;
-#endif
{
register GRPT *pt;
@@ -357,14 +327,8 @@ grp_match(arcn)
* 0 if the time range was added to the list, -1 otherwise
*/
-#ifdef __STDC__
int
trng_add(register char *str)
-#else
-int
-trng_add(str)
- register char *str;
-#endif
{
register TIME_RNG *pt;
register char *up_pt = NULL;
@@ -503,14 +467,8 @@ trng_add(str)
* 0 if this archive member should be processed, 1 if it should be skipped
*/
-#ifdef __STDC__
static int
trng_match(register ARCHD *arcn)
-#else
-static int
-trng_match(arcn)
- register ARCHD *arcn;
-#endif
{
register TIME_RNG *pt;
@@ -578,15 +536,8 @@ trng_match(arcn)
* 0 if converted ok, -1 otherwise
*/
-#ifdef __STDC__
static int
str_sec(register char *str, time_t *tval)
-#else
-static int
-str_sec(str, tval)
- register char *str;
- time_t *tval;
-#endif
{
register struct tm *lt;
register char *dot = NULL;
OpenPOWER on IntegriCloud