Skip to content

Commit

Permalink
furthur adjust format
Browse files Browse the repository at this point in the history
Signed-off-by: hwware <[email protected]>
  • Loading branch information
hwware committed Aug 28, 2024
1 parent ee9a111 commit 67169ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/unit/test_zipmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ static void zipmapRepr(unsigned char *p) {
if (l != 0 && fwrite(p, l, 1, stdout) == 0) perror("fwrite");
p += l + e;
if (e) {
while (e--)
;
while (e--);
}
}
}
Expand Down Expand Up @@ -133,7 +132,7 @@ int test_zipmapIterateThroughElements(int argc, char *argv[], int flags) {
unsigned int expected_vlen[] = {3, 3, 3, 6, 5, 0};
int iter = 0;

while((i = zipmapNext(i,&key,&klen,&value,&vlen)) != NULL) {
while ((i = zipmapNext(i, &key, &klen, &value, &vlen)) != NULL) {
char *tmp = expected_key[iter];
TEST_ASSERT(klen == expected_klen[iter]);
TEST_ASSERT(strncmp((const char *)tmp, (const char *)key, klen) == 0);
Expand Down

0 comments on commit 67169ed

Please sign in to comment.