Skip to content

Commit

Permalink
fix rlim_t type print issue.
Browse files Browse the repository at this point in the history
Signed-off-by: Yongting You <2010youy01@gmail.com>
  • Loading branch information
2010YOUY01 committed Mar 17, 2023
1 parent 6e8744d commit d7f7e8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,9 +841,9 @@ main(int argc, char** argv)
#ifdef HAVE_LINUX
sd_notifyf(0,
"STATUS=max_connections is larger than the file descriptor limit (%ld available)",
flimit.rlim_cur - 30);
(long)(flimit.rlim_cur - 30));
#endif
errx(1, "max_connections is larger than the file descriptor limit (%ld available)", flimit.rlim_cur - 30);
errx(1, "max_connections is larger than the file descriptor limit (%ld available)", (long)(flimit.rlim_cur - 30));
}

if (daemon)
Expand Down

0 comments on commit d7f7e8a

Please sign in to comment.