summaryrefslogtreecommitdiff
path: root/bin/pax/pat_rep.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-01 18:30:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-01 18:30:39 +0000
commita43ab78081569419e6c61ef03c154da56a667dd8 (patch)
tree9d27b3251a03c6298aa14827691ac2399227b0e5 /bin/pax/pat_rep.c
parent380f0870e4aafdd13a6050959648e2e735f2ea56 (diff)
i am bored enough to fix terminal space/tab uglies
Diffstat (limited to 'bin/pax/pat_rep.c')
-rw-r--r--bin/pax/pat_rep.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/pax/pat_rep.c b/bin/pax/pat_rep.c
index ad4bbd9ea84..a93809f7436 100644
--- a/bin/pax/pat_rep.c
+++ b/bin/pax/pat_rep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pat_rep.c,v 1.10 1997/07/25 18:58:34 mickey Exp $ */
+/* $OpenBSD: pat_rep.c,v 1.11 1997/09/01 18:29:56 deraadt Exp $ */
/* $NetBSD: pat_rep.c,v 1.4 1995/03/21 09:07:33 cgd Exp $ */
/*-
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)pat_rep.c 8.2 (Berkeley) 4/18/94";
#else
-static char rcsid[] = "$OpenBSD: pat_rep.c,v 1.10 1997/07/25 18:58:34 mickey Exp $";
+static char rcsid[] = "$OpenBSD: pat_rep.c,v 1.11 1997/09/01 18:29:56 deraadt Exp $";
#endif
#endif /* not lint */
@@ -380,7 +380,7 @@ pat_sel(arcn)
*/
if (pt->pend != NULL)
*pt->pend = '\0';
-
+
if ((pt->pstr = strdup(arcn->name)) == NULL) {
paxwarn(1, "Pattern select out of memory");
if (pt->pend != NULL)
@@ -405,7 +405,7 @@ pat_sel(arcn)
if (*(pt->pstr + len) == '/') {
*(pt->pstr + len) = '\0';
pt->plen = len;
- }
+ }
pt->flgs = DIR_MTCH | MTCH;
arcn->pat = pt;
return(0);
@@ -1055,7 +1055,7 @@ rep_name(name, nlen, prnt)
*/
} while (pt->flgs & GLOB);
- if (found)
+ if (found)
break;
/*
@@ -1078,7 +1078,7 @@ rep_name(name, nlen, prnt)
paxwarn(1,"Replacement name too long %s >> %s",
name, nname);
return(1);
- }
+ }
/*
* inform the user of the result if wanted
@@ -1087,7 +1087,7 @@ rep_name(name, nlen, prnt)
if (*nname == '\0')
(void)fprintf(stderr,"%s >> <empty string>\n",
name);
- else
+ else
(void)fprintf(stderr,"%s >> %s\n", name, nname);
}
@@ -1095,7 +1095,7 @@ rep_name(name, nlen, prnt)
* if empty inform the caller this file is to be skipped
* otherwise copy the new name over the orig name and return
*/
- if (*nname == '\0')
+ if (*nname == '\0')
return(1);
*nlen = l_strncpy(name, nname, PAXPATHLEN + 1);
name[PAXPATHLEN] = '\0';