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
94c87633
Commit
94c87633
authored
Mar 23, 2011
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdb2: fix tools warnings with -Wshadow and -Wcast-qual.
Samba uses these flags, so be friendly.
parent
f1069e4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
ccan/tdb2/tools/tdbtool.c
ccan/tdb2/tools/tdbtool.c
+3
-6
ccan/tdb2/tools/tdbtorture.c
ccan/tdb2/tools/tdbtorture.c
+1
-1
No files found.
ccan/tdb2/tools/tdbtool.c
View file @
94c87633
...
...
@@ -454,8 +454,7 @@ static void speed_tdb(const char *tlimit)
do
{
long
int
r
=
random
();
TDB_DATA
key
,
dbuf
;
key
.
dptr
=
(
unsigned
char
*
)
"store test"
;
key
.
dsize
=
strlen
((
char
*
)
key
.
dptr
);
key
=
tdb_mkdata
(
"store test"
,
strlen
(
"store test"
));
dbuf
.
dptr
=
(
unsigned
char
*
)
&
r
;
dbuf
.
dsize
=
sizeof
(
r
);
tdb_store
(
tdb
,
key
,
dbuf
,
TDB_REPLACE
);
...
...
@@ -470,8 +469,7 @@ static void speed_tdb(const char *tlimit)
do
{
long
int
r
=
random
();
TDB_DATA
key
,
dbuf
;
key
.
dptr
=
(
unsigned
char
*
)
"store test"
;
key
.
dsize
=
strlen
((
char
*
)
key
.
dptr
);
key
=
tdb_mkdata
(
"store test"
,
strlen
(
"store test"
));
dbuf
.
dptr
=
(
unsigned
char
*
)
&
r
;
dbuf
.
dsize
=
sizeof
(
r
);
tdb_fetch
(
tdb
,
key
,
&
dbuf
);
...
...
@@ -486,8 +484,7 @@ static void speed_tdb(const char *tlimit)
do
{
long
int
r
=
random
();
TDB_DATA
key
,
dbuf
;
key
.
dptr
=
(
unsigned
char
*
)
"transaction test"
;
key
.
dsize
=
strlen
((
char
*
)
key
.
dptr
);
key
=
tdb_mkdata
(
"transaction test"
,
strlen
(
"transaction test"
));
dbuf
.
dptr
=
(
unsigned
char
*
)
&
r
;
dbuf
.
dsize
=
sizeof
(
r
);
tdb_transaction_start
(
tdb
);
...
...
ccan/tdb2/tools/tdbtorture.c
View file @
94c87633
...
...
@@ -60,7 +60,7 @@ static void tdb_log(struct tdb_context *tdb, enum tdb_log_level level,
#include "../private.h"
static
void
segv_handler
(
int
sig
nal
,
siginfo_t
*
info
,
void
*
p
)
static
void
segv_handler
(
int
sig
,
siginfo_t
*
info
,
void
*
p
)
{
char
string
[
100
];
...
...
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