/** Get the maximum allowed number of file descriptors. (Some systems
* have a low soft limit.) Make sure we set it to at least
* <b>required_min</b>. Return 0 if we can, or -1 if we fail. */
-int set_max_file_descriptors(int required_min) {
+int set_max_file_descriptors(unsigned int required_min) {
#ifndef HAVE_GETRLIMIT
log_fn(LOG_INFO,"This platform is missing getrlimit(). Proceeding.");
return 0; /* hope we'll be ok */
void set_uint32(char *cp, uint32_t v);
#endif
-int set_max_file_descriptors(int required_min);
+int set_max_file_descriptors(unsigned int required_min);
int switch_id(char *user, char *group);
int spawn_func(int (*func)(void *), void *data);