Skip to content

Commit

Permalink
[fix] fixed some format strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
winshining committed Jan 7, 2024
1 parent c99270f commit 6a871e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ngx_rtmp_auto_push_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ ngx_rtmp_auto_push_init_process(ngx_cycle_t *cycle)
saun->sun_family = AF_UNIX;
pid = ngx_getpid();
*ngx_snprintf((u_char *) saun->sun_path, sizeof(saun->sun_path),
"%V/" NGX_RTMP_AUTO_PUSH_SOCKNAME ".%i",
"%V/" NGX_RTMP_AUTO_PUSH_SOCKNAME ".%P",
&apcf->socket_dir, pid)
= 0;

Expand Down Expand Up @@ -403,7 +403,7 @@ ngx_rtmp_auto_push_exit_process(ngx_cycle_t *cycle)

pid = ngx_getpid();
*ngx_snprintf(path, sizeof(path),
"%V/" NGX_RTMP_AUTO_PUSH_SOCKNAME ".%i",
"%V/" NGX_RTMP_AUTO_PUSH_SOCKNAME ".%P",
&apcf->socket_dir, pid)
= 0;

Expand Down Expand Up @@ -516,7 +516,7 @@ ngx_rtmp_auto_push_reconnect(ngx_event_t *ev)
ngx_memzero(&at.url, sizeof(at.url));
u = &at.url.url;
p = ngx_snprintf(path, sizeof(path) - 1,
"unix:%V/" NGX_RTMP_AUTO_PUSH_SOCKNAME ".%i",
"unix:%V/" NGX_RTMP_AUTO_PUSH_SOCKNAME ".%P",
&apcf->socket_dir, pid);
*p = 0;

Expand Down

0 comments on commit 6a871e3

Please sign in to comment.