Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
ebc4c3e1
Commit
ebc4c3e1
authored
Sep 03, 2020
by
Evgeniy Isaev
Committed by
Mouse
Sep 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed `format-nonliteral` warning
parent
ca3d87a0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
skeletons/REAL.c
skeletons/REAL.c
+4
-2
skeletons/constr_TYPE.c
skeletons/constr_TYPE.c
+1
-1
skeletons/constraints.c
skeletons/constraints.c
+1
-0
No files found.
skeletons/REAL.c
View file @
ebc4c3e1
...
...
@@ -131,7 +131,6 @@ REAL__dump(double d, int canonical, asn_app_consume_bytes_f *cb, void *app_key)
char
local_buf
[
64
];
char
*
buf
=
local_buf
;
ssize_t
buflen
=
sizeof
(
local_buf
);
const
char
*
fmt
=
canonical
?
"%.17E"
/* Precise */
:
"%.15f"
/* Pleasant*/
;
ssize_t
ret
;
/*
...
...
@@ -166,7 +165,10 @@ REAL__dump(double d, int canonical, asn_app_consume_bytes_f *cb, void *app_key)
* Use the libc's double printing, hopefully they got it right.
*/
do
{
ret
=
snprintf
(
buf
,
buflen
,
fmt
,
d
);
ret
=
snprintf
(
buf
,
buflen
,
canonical
?
"%.17E"
/* Precise */
:
"%.15f"
/* Pleasant*/
,
d
);
if
(
ret
<
0
)
{
/* There are some old broken APIs. */
buflen
<<=
1
;
...
...
skeletons/constr_TYPE.c
View file @
ebc4c3e1
...
...
@@ -70,7 +70,7 @@ _print2fp(const void *buffer, size_t size, void *app_key) {
* Some compilers do not support variable args macros.
* This function is a replacement of ASN_DEBUG() macro.
*/
void
ASN_DEBUG_f
(
const
char
*
fmt
,
...);
void
CC_PRINTFLIKE
(
1
,
2
)
ASN_DEBUG_f
(
const
char
*
fmt
,
...);
void
ASN_DEBUG_f
(
const
char
*
fmt
,
...)
{
va_list
ap
;
va_start
(
ap
,
fmt
);
...
...
skeletons/constraints.c
View file @
ebc4c3e1
...
...
@@ -35,6 +35,7 @@ struct errbufDesc {
};
static
void
CC_PRINTFLIKE
(
4
,
5
)
_asn_i_ctfailcb
(
void
*
key
,
const
asn_TYPE_descriptor_t
*
td
,
const
void
*
sptr
,
const
char
*
fmt
,
...)
{
struct
errbufDesc
*
arg
=
key
;
...
...
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