Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
e93f8431
Commit
e93f8431
authored
Oct 20, 2010
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdb: 64-bit fixes.
parent
65c7607d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
ccan/tdb/summary.c
ccan/tdb/summary.c
+1
-1
ccan/tdb/tdb_private.h
ccan/tdb/tdb_private.h
+1
-1
ccan/tdb/test/logging.c
ccan/tdb/test/logging.c
+1
-1
No files found.
ccan/tdb/summary.c
View file @
e93f8431
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#include <ccan/tally/tally.h>
#include <ccan/tally/tally.h>
#define SUMMARY_FORMAT \
#define SUMMARY_FORMAT \
"Size of file/data: %
z
u/%zu\n" \
"Size of file/data: %u/%zu\n" \
"Number of records: %zu\n" \
"Number of records: %zu\n" \
"Smallest/average/largest keys: %zu/%zu/%zu\n%s" \
"Smallest/average/largest keys: %zu/%zu/%zu\n%s" \
"Smallest/average/largest data: %zu/%zu/%zu\n%s" \
"Smallest/average/largest data: %zu/%zu/%zu\n%s" \
...
...
ccan/tdb/tdb_private.h
View file @
e93f8431
...
@@ -72,7 +72,7 @@ typedef uint32_t tdb_len_t;
...
@@ -72,7 +72,7 @@ typedef uint32_t tdb_len_t;
typedef
uint32_t
tdb_off_t
;
typedef
uint32_t
tdb_off_t
;
#ifndef offsetof
#ifndef offsetof
#define offsetof(t,f) ((
unsigned in
t)&((t *)0)->f)
#define offsetof(t,f) ((
size_
t)&((t *)0)->f)
#endif
#endif
#define TDB_MAGIC_FOOD "TDB file\n"
#define TDB_MAGIC_FOOD "TDB file\n"
...
...
ccan/tdb/test/logging.c
View file @
e93f8431
...
@@ -25,7 +25,7 @@ static void taplog(struct tdb_context *tdb,
...
@@ -25,7 +25,7 @@ static void taplog(struct tdb_context *tdb,
/* Strip trailing \n: diag adds it. */
/* Strip trailing \n: diag adds it. */
if
(
line
[
0
]
&&
line
[
strlen
(
line
)
-
1
]
==
'\n'
)
if
(
line
[
0
]
&&
line
[
strlen
(
line
)
-
1
]
==
'\n'
)
diag
(
"%s%.*s"
,
log_prefix
,
strlen
(
line
)
-
1
,
line
);
diag
(
"%s%.*s"
,
log_prefix
,
(
unsigned
)
strlen
(
line
)
-
1
,
line
);
else
else
diag
(
"%s%s"
,
log_prefix
,
line
);
diag
(
"%s%s"
,
log_prefix
,
line
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment