[libmultipath] the forgotten bit
authorChristophe Varoqui <cvaroqui@zezette.localdomain>
Wed, 16 May 2007 21:17:02 +0000 (23:17 +0200)
committerChristophe Varoqui <cvaroqui@zezette.localdomain>
Wed, 16 May 2007 21:17:02 +0000 (23:17 +0200)
Thanks Hannes, for reporting this forgotten changeset.

libmultipath/vector.h

index 294f0b1..993ba79 100644 (file)
@@ -37,6 +37,8 @@ typedef struct _vector *vector;
 
 #define vector_foreach_slot(v,p,i) \
        for (i = 0; i < (v)->allocated && ((p) = (v)->slot[i]); i++)
+#define vector_foreach_slot_after(v,p,i) \
+       for (; i < (v)->allocated && ((p) = (v)->slot[i]); i++)
 
 /* Prototypes */
 extern vector vector_alloc(void);