summaryrefslogtreecommitdiffstats
path: root/bin/pax/pat_rep.c
diff options
context:
space:
mode:
authorrse <rse@FreeBSD.org>2007-05-24 06:44:37 +0000
committerrse <rse@FreeBSD.org>2007-05-24 06:44:37 +0000
commit22615a5b86297a263a843ce12688277c8b43b2a6 (patch)
tree26f85c80c55d90147966cef63275667956eab846 /bin/pax/pat_rep.c
parenta805ec32c73111c6ddfe0615563f707fe0520aab (diff)
downloadFreeBSD-src-22615a5b86297a263a843ce12688277c8b43b2a6.zip
FreeBSD-src-22615a5b86297a263a843ce12688277c8b43b2a6.tar.gz
Cleanup pax(1) sources a little bit while I poked around in them:
- remove a superfluous doubled trailing semicolon. - remove the extra void casts on calls to void-function free(3).
Diffstat (limited to 'bin/pax/pat_rep.c')
-rw-r--r--bin/pax/pat_rep.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/pax/pat_rep.c b/bin/pax/pat_rep.c
index 667aa8f..aa4e7d6 100644
--- a/bin/pax/pat_rep.c
+++ b/bin/pax/pat_rep.c
@@ -140,7 +140,7 @@ rep_add(char *str)
regerror(res, &(rep->rcmp), rebuf, sizeof(rebuf));
paxwarn(1, "%s while compiling regular expression %s", rebuf, str);
# endif
- (void)free((char *)rep);
+ free((char *)rep);
return(-1);
}
@@ -152,11 +152,11 @@ rep_add(char *str)
*pt1++ = *str;
if ((pt2 = strchr(pt1, *str)) == NULL) {
# ifdef NET2_REGEX
- (void)free((char *)rep->rcmp);
+ free((char *)rep->rcmp);
# else
regfree(&(rep->rcmp));
# endif
- (void)free((char *)rep);
+ free((char *)rep);
paxwarn(1, "Invalid replacement string %s", str);
return(-1);
}
@@ -181,11 +181,11 @@ rep_add(char *str)
break;
default:
# ifdef NET2_REGEX
- (void)free((char *)rep->rcmp);
+ free((char *)rep->rcmp);
# else
regfree(&(rep->rcmp));
# endif
- (void)free((char *)rep);
+ free((char *)rep);
*pt1 = *str;
paxwarn(1, "Invalid replacement string option %s", str);
return(-1);
@@ -401,7 +401,7 @@ pat_sel(ARCHD *arcn)
return(-1);
}
*ppt = pt->fow;
- (void)free((char *)pt);
+ free((char *)pt);
arcn->pat = NULL;
return(0);
}
OpenPOWER on IntegriCloud