~ubuntu-branches/ubuntu/precise/corosync/precise-proposed

« back to all changes in this revision

Viewing changes to test/testevsth.c

  • Committer: Bazaar Package Importer
  • Author(s): Ante Karamatic
  • Date: 2009-08-21 09:29:56 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090821092956-w9qxxxx3zeoh8dem
Tags: 1.0.0-4ubuntu2
* debian/control:
  - 'Ubuntu Developers' instead of 'Ubuntu Core Developers'
    as maintainer
  - Bump debhelper dependecy to 7

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Author: Steven Dake (sdake@redhat.com)
7
7
 *
8
8
 * This software licensed under BSD license, the text of which follows:
9
 
 * 
 
9
 *
10
10
 * Redistribution and use in source and binary forms, with or without
11
11
 * modification, are permitted provided that the following conditions are met:
12
12
 *
31
31
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
32
32
 * THE POSSIBILITY OF SUCH DAMAGE.
33
33
 */
 
34
 
 
35
#include <config.h>
 
36
 
34
37
#include <stdio.h>
35
38
#include <stdlib.h>
36
39
#include <sys/socket.h>
44
47
 
45
48
#define CALLBACKS 200000
46
49
int callback_count = 0;
47
 
void evs_deliver_fn (struct in_addr source_addr, void *msg, int msg_len)
 
50
void evs_deliver_fn (struct in_addr source_addr, const void *msg, size_t msg_len)
48
51
{
49
52
#ifdef PRINT_OUTPUT
50
53
        char *buf;
59
62
}
60
63
 
61
64
void evs_confchg_fn (
62
 
        struct in_addr *member_list, int member_list_entries,
63
 
        struct in_addr *left_list, int left_list_entries,
64
 
        struct in_addr *joined_list, int joined_list_entries)
 
65
        const struct in_addr *member_list, size_t member_list_entries,
 
66
        const struct in_addr *left_list, size_t left_list_entries,
 
67
        const struct in_addr *joined_list, size_t joined_list_entries)
65
68
{
66
69
        int i;
67
70