Revision 47c95dd4 src/Tests/cloud_test.c

View differences:

src/Tests/cloud_test.c
133 133
  switch(operation) {
134 134
  case PUT:
135 135
    printf("Putting on cloud value \"%s\" for key \"%s\"\n", value, key);
136
    err = put_on_cloud(cloud, key, value, strlen(value));
136
    err = put_on_cloud(cloud, key, value, strlen(value), 0);
137 137
    if (err) {
138 138
      printf("Error performing the operation");
139 139
      return 1;
......
141 141
    break;
142 142
  case GET:
143 143
    printf("Getting from cloud value for key \"%s\": ", key);
144
    err = get_from_cloud(cloud, key, HEADER, strlen(HEADER));
144
    err = get_from_cloud(cloud, key, HEADER, strlen(HEADER), 0);
145 145
    if (err) {
146 146
      printf("Error performing the operation");
147 147
      return 1;
......
153 153
      if (err < 0) {
154 154
        printf("Erorr receiving cloud response\n");
155 155
        return 1;
156
      } else if (err == 0) {
157
        printf("Key not present on the cloud\n");
158 156
      } else {
159 157
        time_t timestamp;
160 158
        int i;
161 159
        buffer[err] = '\0';
162
        printf("len=%d\n", err, buffer);
160
        printf("len=%d\n", err);
163 161
        for (i=0; i<err; i++)
164 162
          printf("%x(%c) ", buffer[i], buffer[i]);
165 163
        printf("\n");

Also available in: Unified diff