Enlightenment CVS committal

Author  : mej
Project : eterm
Module  : libast

Dir     : eterm/libast/src


Modified Files:
        mbuff.c 


Log Message:
Mon Jul 24 01:47:44 2006                        Michael Jennings (mej)

Fix header installation for new headers.
----------------------------------------------------------------------

===================================================================
RCS file: /cvs/e/eterm/libast/src/mbuff.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- mbuff.c     25 Apr 2006 15:18:41 -0000      1.4
+++ mbuff.c     24 Jul 2006 10:47:46 -0000      1.5
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char __attribute__((unused)) cvs_ident[] = "$Id: mbuff.c,v 1.4 
2006/04/25 15:18:41 mej Exp $";
+static const char __attribute__((unused)) cvs_ident[] = "$Id: mbuff.c,v 1.5 
2006/07/24 10:47:46 mej Exp $";
 
 #ifdef HAVE_CONFIG_H
 # include <config.h>
@@ -562,10 +562,9 @@
 spif_mbuff_rindex(spif_mbuff_t self, spif_uint8_t c)
 {
     spif_byteptr_t tmp;
-    spif_memidx_t i;
 
     ASSERT_RVAL(!SPIF_MBUFF_ISNULL(self), (SPIF_CAST(memidx) -1));
-    for (tmp = self->buff + self->len, i = 0; (*tmp & (~c)) && (i < 
self->len); i++, tmp--);
+    for (tmp = self->buff + self->len - 1; (*tmp != c) && (tmp >= self->buff); 
tmp--);
 
     if ((tmp == self->buff) && (*tmp != c)) {
         return SPIF_CAST(memidx) (self->len);



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to