Revision 36dc16e0 src/TopologyManager/peersampler.c

View differences:

src/TopologyManager/peersampler.c
10 10

  
11 11
extern struct peersampler_iface ncast;
12 12
extern struct peersampler_iface cyclon;
13
extern struct peersampler_iface cloudcast;
13 14
extern struct peersampler_iface dummy;
14 15

  
15 16
struct psample_context{
......
33 34
  if (proto) {
34 35
    if (strcmp(proto, "cyclon") == 0) {
35 36
      tc->ps = &cyclon;
36
    }
37
    if (strcmp(proto, "dummy") == 0) {
37
    } else if (strcmp(proto, "cloudcast") == 0) {
38
      tc->ps = &cloudcast;
39
    }else if (strcmp(proto, "dummy") == 0) {
38 40
      tc->ps = &dummy;
41
    } else {
42
      free(tc);
43
      return NULL;
39 44
    }
40 45
  }
41 46
  

Also available in: Unified diff