mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine code
This commit is contained in:
parent
2c08c4d303
commit
7dcfd6b029
4 changed files with 7 additions and 2 deletions
|
@ -130,7 +130,7 @@ namespace _srs_internal
|
|||
// read total content from file.
|
||||
ssize_t nread = 0;
|
||||
if ((err = reader.read(start, filesize, &nread)) != srs_success) {
|
||||
return srs_error_wrap(err, "read %d only %d bytes", filesize, nread);
|
||||
return srs_error_wrap(err, "read %d only %d bytes", filesize, (int)nread);
|
||||
}
|
||||
|
||||
return err;
|
||||
|
@ -1140,6 +1140,7 @@ SrsConfig::SrsConfig()
|
|||
show_help = false;
|
||||
show_version = false;
|
||||
test_conf = false;
|
||||
show_signature = false;
|
||||
|
||||
root = new SrsConfDirective();
|
||||
root->conf_line = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue