fixup signal and MAXPATHLEN include fallout

This commit is contained in:
Mike Belopuhov 2015-01-18 22:59:35 +01:00
parent 4c2a775e0d
commit d27dc1edd6
2 changed files with 8 additions and 5 deletions

8
icbd.c
View File

@ -24,6 +24,8 @@
#include <netinet/ip.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@ -43,13 +45,13 @@
#include "icbd.h"
struct stat modtabst;
char modtabpath[MAXPATHLEN];
char modtabpath[PATH_MAX];
char modtab[ICB_MTABLEN][ICB_MAXNICKLEN];
int modtabcnt;
char srvname[MAXHOSTNAMELEN];
char srvname[NI_MAXHOST];
int creategroups;
int foreground;
char logprefix[MAXPATHLEN/2];
char logprefix[PATH_MAX/2];
int dodns = 1;
int dologging;
int verbose;

View File

@ -21,6 +21,7 @@
#include <sys/time.h>
#include <sys/uio.h>
#include <errno.h>
#include <limits.h>
#include <netdb.h>
#include <stdlib.h>
#include <string.h>
@ -59,7 +60,7 @@ char file_ts[sizeof "0000-00"];
char line_ts[sizeof "00:00"];
struct event ev_tick;
extern char logprefix[MAXPATHLEN/2];
extern char logprefix[PATH_MAX/2];
extern int dologging;
int
@ -223,7 +224,7 @@ logger_dispatch(struct bufferevent *bev, void *arg __attribute__((unused)))
FILE *
logger_open(char *group)
{
char path[MAXPATHLEN];
char path[PATH_MAX];
FILE *fp = NULL;
/* make sure not to overflow the logfiles table */