Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
8115ab79
Commit
8115ab79
authored
7 years ago
by
Joshua Colp
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "iostream: Fix ast_iostream_printf declaration."
parents
0e6e1fcc
b4862e46
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/asterisk/iostream.h
+2
-1
2 additions, 1 deletion
include/asterisk/iostream.h
main/iostream.c
+1
-1
1 addition, 1 deletion
main/iostream.c
with
3 additions
and
2 deletions
include/asterisk/iostream.h
+
2
−
1
View file @
8115ab79
...
...
@@ -109,7 +109,8 @@ ssize_t ast_iostream_read(struct ast_iostream *stream, void *buf, size_t count);
ssize_t
ast_iostream_gets
(
struct
ast_iostream
*
stream
,
char
*
buf
,
size_t
count
);
ssize_t
ast_iostream_discard
(
struct
ast_iostream
*
stream
,
size_t
count
);
ssize_t
ast_iostream_write
(
struct
ast_iostream
*
stream
,
const
void
*
buf
,
size_t
count
);
ssize_t
ast_iostream_printf
(
struct
ast_iostream
*
stream
,
const
void
*
fmt
,
...);
ssize_t
__attribute__
((
format
(
printf
,
2
,
3
)))
ast_iostream_printf
(
struct
ast_iostream
*
stream
,
const
char
*
fmt
,
...);
struct
ast_iostream
*
ast_iostream_from_fd
(
int
*
fd
);
int
ast_iostream_start_tls
(
struct
ast_iostream
**
stream
,
SSL_CTX
*
ctx
,
int
client
);
...
...
This diff is collapsed.
Click to expand it.
main/iostream.c
+
1
−
1
View file @
8115ab79
...
...
@@ -443,7 +443,7 @@ ssize_t ast_iostream_write(struct ast_iostream *stream, const void *buf, size_t
}
}
ssize_t
ast_iostream_printf
(
struct
ast_iostream
*
stream
,
const
void
*
fmt
,
...)
ssize_t
ast_iostream_printf
(
struct
ast_iostream
*
stream
,
const
char
*
fmt
,
...)
{
char
sbuf
[
512
],
*
buf
=
sbuf
;
int
len
,
len2
,
ret
=
-
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment