diff options
Diffstat (limited to 'bin/pax/pat_rep.c')
-rw-r--r-- | bin/pax/pat_rep.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/bin/pax/pat_rep.c b/bin/pax/pat_rep.c index 6519eb4..2933e1f 100644 --- a/bin/pax/pat_rep.c +++ b/bin/pax/pat_rep.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pat_rep.c,v 1.8 1997/02/22 14:04:35 peter Exp $ + * $Id: pat_rep.c,v 1.9 1997/06/02 06:30:06 charnier Exp $ */ #ifndef lint @@ -119,7 +119,7 @@ rep_add(str) * throw out the bad parameters */ if ((str == NULL) || (*str == '\0')) { - warn(1, "Empty replacement string"); + pax_warn(1, "Empty replacement string"); return(-1); } @@ -128,7 +128,7 @@ rep_add(str) * this expression */ if ((pt1 = strchr(str+1, *str)) == NULL) { - warn(1, "Invalid replacement string %s", str); + pax_warn(1, "Invalid replacement string %s", str); return(-1); } @@ -137,7 +137,7 @@ rep_add(str) * and split out the regular expression and try to compile it */ if ((rep = (REPLACE *)malloc(sizeof(REPLACE))) == NULL) { - warn(1, "Unable to allocate memory for replacement string"); + pax_warn(1, "Unable to allocate memory for replacement string"); return(-1); } @@ -147,7 +147,7 @@ rep_add(str) # else if ((res = regcomp(&(rep->rcmp), str+1, 0)) != 0) { regerror(res, &(rep->rcmp), rebuf, sizeof(rebuf)); - warn(1, "%s while compiling regular expression %s", rebuf, str); + pax_warn(1, "%s while compiling regular expression %s", rebuf, str); # endif (void)free((char *)rep); return(-1); @@ -166,7 +166,7 @@ rep_add(str) regfree(&(rep->rcmp)); # endif (void)free((char *)rep); - warn(1, "Invalid replacement string %s", str); + pax_warn(1, "Invalid replacement string %s", str); return(-1); } @@ -196,7 +196,7 @@ rep_add(str) # endif (void)free((char *)rep); *pt1 = *str; - warn(1, "Invalid replacement string option %s", str); + pax_warn(1, "Invalid replacement string option %s", str); return(-1); } ++pt2; @@ -241,7 +241,7 @@ pat_add(str) * throw out the junk */ if ((str == NULL) || (*str == '\0')) { - warn(1, "Empty pattern string"); + pax_warn(1, "Empty pattern string"); return(-1); } @@ -251,7 +251,7 @@ pat_add(str) * node to the end of the pattern list */ if ((pt = (PATTERN *)malloc(sizeof(PATTERN))) == NULL) { - warn(1, "Unable to allocate memory for pattern string"); + pax_warn(1, "Unable to allocate memory for pattern string"); return(-1); } @@ -294,7 +294,7 @@ pat_chk() if (pt->flgs & MTCH) continue; if (!wban) { - warn(1, "WARNING! These patterns were not matched:"); + pax_warn(1, "WARNING! These patterns were not matched:"); ++wban; } (void)fprintf(stderr, "%s\n", pt->pstr); @@ -373,7 +373,7 @@ pat_sel(arcn) *pt->pend = '\0'; if ((pt->pstr = strdup(arcn->name)) == NULL) { - warn(1, "Pattern select out of memory"); + pax_warn(1, "Pattern select out of memory"); if (pt->pend != NULL) *pt->pend = '/'; pt->pend = NULL; @@ -421,7 +421,7 @@ pat_sel(arcn) /* * should never happen.... */ - warn(1, "Pattern list inconsistant"); + pax_warn(1, "Pattern list inconsistant"); return(-1); } *ppt = pt->fow; @@ -856,7 +856,7 @@ fix_path(or_name, or_len, dir_name, dir_len) --dest; } if ((len = dest - or_name) > PAXPATHLEN) { - warn(1, "File name %s/%s, too long", dir_name, start); + pax_warn(1, "File name %s/%s, too long", dir_name, start); return(-1); } *or_len = len; @@ -983,7 +983,7 @@ rep_name(name, nlen, prnt) < 0) { # endif if (prnt) - warn(1, "Replacement name error %s", + pax_warn(1, "Replacement name error %s", name); return(1); } @@ -1034,7 +1034,7 @@ rep_name(name, nlen, prnt) *outpt = '\0'; if ((outpt == endpt) && (*inpt != '\0')) { if (prnt) - warn(1,"Replacement name too long %s >> %s", + pax_warn(1,"Replacement name too long %s >> %s", name, nname); return(1); } |