unneeded set
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 2 Nov 1992 04:46:11 +0000 (20:46 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 2 Nov 1992 04:46:11 +0000 (20:46 -0800)
SCCS-vsn: usr.bin/sed/process.c 5.9

usr/src/usr.bin/sed/process.c

index 6505e69..cd302ac 100644 (file)
@@ -10,7 +10,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)process.c  5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)process.c  5.9 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -290,7 +290,7 @@ substitute(cp)
        regex_t *re;
        size_t re_off;
        int n;
        regex_t *re;
        size_t re_off;
        int n;
-       char *endp, *s;
+       char *s;
 
        s = ps;
        re = cp->u.s->re;
 
        s = ps;
        re = cp->u.s->re;
@@ -311,8 +311,6 @@ substitute(cp)
                do {
                        /* Locate start of replaced string. */
                        re_off = match[0].rm_so;
                do {
                        /* Locate start of replaced string. */
                        re_off = match[0].rm_so;
-                       /* Locate end of replaced string + 1. */
-                       endp = s + match[0].rm_eo;
                        /* Copy leading retained string. */
                        cspace(&SS, s, re_off, APPEND);
                        /* Add in regular expression. */
                        /* Copy leading retained string. */
                        cspace(&SS, s, re_off, APPEND);
                        /* Add in regular expression. */