This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
minor touchup patches for rcmd/regcomp
- From: Mike Frysinger <vapier at gentoo dot org>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>
- Cc: Bernhard Fischer <rep dot nop at aon dot at>
- Date: Sun, 29 Jan 2006 04:07:09 -0500
- Subject: minor touchup patches for rcmd/regcomp
just forwarding some minor patches from the uClibc list to remove dead code
-mike
2006-01-27 Bernhard Fischer <rep.nop@aon.at>
* libc/inet/rcmd.c (iruserfopen): Remove duplicate setting of cp to NULL.
--- libc/inet/rcmd.c
+++ libc/inet/rcmd.c
@@ -477,7 +477,6 @@ iruserfopen (const char *file, uid_t oku
/* If not a regular file, if owned by someone other than user or
root, if writeable by anyone but the owner, or if hardlinked
anywhere, quit. */
- cp = NULL;
if (__lxstat64 (_STAT_VER, file, &st))
cp = _("lstat failed");
else if (!S_ISREG (st.st_mode))
2006-01-27 Bernhard Fischer <rep.nop@aon.at>
* posix/regcomp.c (org_node,cur_node): Remove unused variables.
--- libc/posix/regcomp.c
+++ libc/posix/regcomp.c
@@ -1644,8 +1644,6 @@ calc_eclosure_iter (re_node_set *new_set
&& dfa->edests[node].nelem
&& !dfa->nodes[dfa->edests[node].elems[0]].duplicated)
{
- int org_node, cur_node;
- org_node = cur_node = node;
err = duplicate_node_closure (dfa, node, node, node, constraint);
if (BE (err != REG_NOERROR, 0))
return err;