Module: xenomai-3
Branch: master
Commit: 2eea62199365bd9bba7bbace9917a54a6ad684f5
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=2eea62199365bd9bba7bbace9917a54a6ad684f5

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Mar 24 18:29:09 2015 +0100

boilerplate/ancillaries: fix off-by-one index in name generator

---

 include/boilerplate/ancillaries.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/boilerplate/ancillaries.h 
b/include/boilerplate/ancillaries.h
index 8f80ba7..5532a83 100644
--- a/include/boilerplate/ancillaries.h
+++ b/include/boilerplate/ancillaries.h
@@ -43,7 +43,7 @@ struct name_generator {
        struct name_generator __name = {                                \
                .radix = __radix,                                       \
                .length = sizeof ((__type *)0)->__member,               \
-               .serial = ATOMIC_INIT(1),                               \
+               .serial = ATOMIC_INIT(0),                               \
        }
 
 #define ONE_BILLION  1000000000


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to