summaryrefslogtreecommitdiff
path: root/examples/c
diff options
context:
space:
mode:
authorAlex Gorrod <alexander.gorrod@mongodb.com>2016-05-05 17:22:52 +1000
committerAlex Gorrod <alexander.gorrod@mongodb.com>2016-05-05 17:22:52 +1000
commit8ac9a3057bc3312773bff18c22b27813588a957b (patch)
tree543cb0d1b6840ead9903d4d6eb367a3ba7e3a2c2 /examples/c
parent8c183b0772bfcc085aab245f125e03a8410c6f83 (diff)
downloadmongo-8ac9a3057bc3312773bff18c22b27813588a957b.tar.gz
WT-2617 Don't use u_int in the example code. It's not Windows native. (#2722)
Diffstat (limited to 'examples/c')
-rw-r--r--examples/c/ex_file_system.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/c/ex_file_system.c b/examples/c/ex_file_system.c
index 9a95a55c207..9330e66c9b6 100644
--- a/examples/c/ex_file_system.c
+++ b/examples/c/ex_file_system.c
@@ -692,7 +692,7 @@ main(void)
WT_CURSOR *cursor;
WT_SESSION *session;
const char *key, *open_config, *uri;
- u_int i;
+ int i;
int ret = 0;
char kbuf[64];
@@ -743,7 +743,7 @@ main(void)
return (EXIT_FAILURE);
}
for (i = 0; i < 1000; ++i) {
- (void)snprintf(kbuf, sizeof(kbuf), "%010u KEY -----", i);
+ (void)snprintf(kbuf, sizeof(kbuf), "%010d KEY -----", i);
cursor->set_key(cursor, kbuf);
cursor->set_value(cursor, "--- VALUE ---");
if ((ret = cursor->insert(cursor)) != 0) {
@@ -769,7 +769,7 @@ main(void)
kbuf, wiredtiger_strerror(ret));
return (EXIT_FAILURE);
}
- (void)snprintf(kbuf, sizeof(kbuf), "%010u KEY -----", i);
+ (void)snprintf(kbuf, sizeof(kbuf), "%010d KEY -----", i);
if ((ret = cursor->get_key(cursor, &key)) != 0) {
fprintf(stderr, "WT_CURSOR.get_key: %s\n",
wiredtiger_strerror(ret));