This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]