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
53b6a92e
Commit
53b6a92e
authored
Jul 15, 2009
by
Joey Adams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tiny fix to stringmap's run.c
parent
083a691f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ccan/stringmap/test/run.c
ccan/stringmap/test/run.c
+4
-2
No files found.
ccan/stringmap/test/run.c
View file @
53b6a92e
...
...
@@ -68,6 +68,8 @@ static char *random_string(struct block_pool *bp) {
struct
test_entry
{
const
char
*
str
;
char
*
value
;
/* value is not a string, but a pointer to char marking that
this key has been entered already. */
};
static
int
by_str
(
const
void
*
ap
,
const
void
*
bp
)
{
...
...
@@ -161,11 +163,11 @@ static int test_stringmap(size_t count, FILE *out) {
unique_count
++
;
}
else
{
if
(
strcmp
(
i
->
value
,
map
.
last
->
value
))
if
(
strcmp
(
i
->
str
,
map
.
last
->
str
))
err
(
"lookup returned incorrect string"
);
if
(
i
->
value
!=
*
node
)
err
(
"lookup returned incorrect value"
);
if
(
!*
*
nod
e
)
if
(
!*
i
->
valu
e
)
err
(
"lookup returned bogus value"
);
}
}
...
...
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