Revision 747990ee som/Tests/chunkidset_test.c

View differences:

som/Tests/chunkidset_test.c
69 69
  free(cset);
70 70
}
71 71

  
72
static void encoding_test(enum chunkID_set_encoding_type mode)
72
static void encoding_test(const char *mode)
73 73
{
74 74
  struct chunkID_set *cset, *cset1;
75 75
  static uint8_t buff[2048];
......
77 77
  void *meta;
78 78
  char config[32];
79 79

  
80
  sprintf(config,"type=%d", mode);
80
  sprintf(config,"type=%s", mode);
81 81
  cset = chunkID_set_init(config);
82 82
  populate(cset);
83 83
  res = encodeChunkSignaling(cset, NULL, 0, buff, sizeof(buff));
......
117 117
int main(int argc, char *argv[])
118 118
{
119 119
  simple_test();
120
  encoding_test(priority);
121
  encoding_test(bitmap);
120
  encoding_test("priority");
121
  encoding_test("bitmap");
122 122
  metadata_test();
123 123

  
124 124
  return 0;

Also available in: Unified diff