summaryrefslogtreecommitdiff
path: root/examples/c/ex_all.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/c/ex_all.c')
-rw-r--r--examples/c/ex_all.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/c/ex_all.c b/examples/c/ex_all.c
index 8a1533011b2..82620673fe1 100644
--- a/examples/c/ex_all.c
+++ b/examples/c/ex_all.c
@@ -848,8 +848,8 @@ my_compare(WT_COLLATOR *collator, WT_SESSION *session,
p1 = (const char *)value1->data;
p2 = (const char *)value2->data;
- while (*p1 != '\0' && *p1 == *p2)
- p1++, p2++;
+ for (; *p1 != '\0' && *p1 == *p2; ++p1, ++p2)
+ ;
*cmp = (int)*p2 - (int)*p1;
return (0);