1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Refine code

This commit is contained in:
winlin 2020-08-20 18:05:40 +08:00
parent 2c08c4d303
commit 7dcfd6b029
4 changed files with 7 additions and 2 deletions

View file

@ -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;