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
afcb4f4d
Commit
afcb4f4d
authored
Oct 20, 2010
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: fixes for 64-bit.
printf's %.* means an unsigned arg, not a size_t.
parent
c8c0c25c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tools/ccanlint/tests/examples_compile.c
tools/ccanlint/tests/examples_compile.c
+1
-1
tools/tools.c
tools/tools.c
+1
-1
No files found.
tools/ccanlint/tests/examples_compile.c
View file @
afcb4f4d
...
...
@@ -156,7 +156,7 @@ static char *add_func(char *others, const char *line)
}
return
talloc_asprintf_append
(
others
,
"printf(
\"
%%p
\"
, %.*s);
\n
"
,
end
-
p
+
1
,
p
);
(
unsigned
)(
end
-
p
+
1
)
,
p
);
}
static
void
strip_leading_whitespace
(
char
**
lines
)
...
...
tools/tools.c
View file @
afcb4f4d
...
...
@@ -213,7 +213,7 @@ char *temp_dir(const void *ctx)
char
*
maybe_temp_file
(
const
void
*
ctx
,
const
char
*
extension
,
bool
keep
,
const
char
*
srcname
)
{
size_t
baselen
;
unsigned
baselen
;
char
*
f
,
*
suffix
=
talloc_strdup
(
ctx
,
""
);
struct
stat
st
;
unsigned
int
count
=
0
;
...
...
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