~keepalived/keepalived/trunk

« back to all changes in this revision

Viewing changes to keepalived/vrrp/vrrp_sync.c

  • Committer: Alexandre Cassen
  • Date: 2012-08-17 15:32:59 UTC
  • Revision ID: git-v1:4d439c661eb2d5f9c234201038936616a78a67e0
code cleanup

* Use POSIX compliant declaration in vector lib
* Use POSIX compliant declaration in timer lib
* some cosmetics

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
        char *str;
74
74
        int i;
75
75
 
76
 
        for (i = 0; i < VECTOR_SIZE(vgroup->iname); i++) {
77
 
                str = VECTOR_SLOT(vgroup->iname, i);
 
76
        for (i = 0; i < vector_size(vgroup->iname); i++) {
 
77
                str = vector_slot(vgroup->iname, i);
78
78
                vrrp = vrrp_get_instance(str);
79
79
                if (vrrp) {
80
80
                        if (LIST_ISEMPTY(vgroup->index_list))