mirror of
https://github.com/pissnet/pissircd.git
synced 2025-08-05 09:45:23 +01:00
Fix some warnings: change an int to time_t and vice-versa
This commit is contained in:
parent
a6820b4a8d
commit
89f75bd6e7
3 changed files with 6 additions and 6 deletions
|
@ -35,7 +35,7 @@ extern int fd_fileopen(const char *path, unsigned int flags);
|
|||
#define FD_SELECT_WRITE 0x2
|
||||
|
||||
extern void fd_setselect(int fd, int flags, IOCallbackFunc iocb, void *data);
|
||||
extern void fd_select(time_t delay); /* backend-specific */
|
||||
extern void fd_select(int delay); /* backend-specific */
|
||||
extern void fd_refresh(int fd); /* backend-specific */
|
||||
extern void fd_fork(); /* backend-specific */
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@ void fd_debug(fd_set *f, int highest, char *name)
|
|||
}
|
||||
}
|
||||
}
|
||||
void fd_select(time_t delay)
|
||||
void fd_select(int delay)
|
||||
{
|
||||
struct timeval to;
|
||||
int num, fd;
|
||||
|
@ -360,7 +360,7 @@ void fd_refresh(int fd)
|
|||
}
|
||||
}
|
||||
|
||||
void fd_select(time_t delay)
|
||||
void fd_select(int delay)
|
||||
{
|
||||
struct timespec ts;
|
||||
int num, p, revents, fd;
|
||||
|
@ -469,7 +469,7 @@ void fd_refresh(int fd)
|
|||
fde->backend_flags = pflags;
|
||||
}
|
||||
|
||||
void fd_select(time_t delay)
|
||||
void fd_select(int delay)
|
||||
{
|
||||
int num, p, revents, fd;
|
||||
struct epoll_event *epfd;
|
||||
|
@ -605,7 +605,7 @@ void fd_refresh(int fd)
|
|||
fde->backend_flags = pflags;
|
||||
}
|
||||
|
||||
void fd_select(time_t delay)
|
||||
void fd_select(int delay)
|
||||
{
|
||||
int num, p, revents, fd;
|
||||
struct pollfd *pfd;
|
||||
|
|
|
@ -882,7 +882,7 @@ literal:
|
|||
/** Do the actual writing to log files */
|
||||
void do_unreal_log_disk(LogLevel loglevel, const char *subsystem, const char *event_id, MultiLine *msg, const char *json_serialized, Client *from_server)
|
||||
{
|
||||
static int last_log_file_warning = 0;
|
||||
static time_t last_log_file_warning = 0;
|
||||
Log *l;
|
||||
char timebuf[128];
|
||||
struct stat fstats;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue