On Mon, Jan 02, 2023 at 10:13:59AM +0100, Jakub Wilk wrote: > I saw this in an error message sent by cron: > > Hint: Try `ulimit -n 262144' or similar (current limit is 0). > > The number in parentheses in wrong of course. > > This is likely related to these compiler warnings: > > ../updatedb.cpp:710:81: warning: format ‘%lu’ expects argument of type > ‘long unsigned int’, but argument 3 has type ‘rlim_t’ {aka ‘long long > unsigned int’} [-Wformat=] > ../updatedb.cpp:710:115: warning: format ‘%lu’ expects argument of type > ‘long unsigned int’, but argument 4 has type ‘rlim_t’ {aka ‘long long > unsigned int’} [-Wformat=]
Do you know if there are any compiler macros for rlim_t, like there is for e.g. PRId64? Or should I simply cast to uint64_t and use an existing macro? /* Steinar */ -- Homepage: https://www.sesse.net/