Changeset d27dc1e in code
- Timestamp:
- Jan 18, 2015, 9:59:35 PM (10 years ago)
- Branches:
- master
- Children:
- 8d30e02
- Parents:
- 4c2a775
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
icbd.c
r4c2a775 rd27dc1e 25 25 #include <arpa/inet.h> 26 26 #include <fcntl.h> 27 #include <limits.h> 28 #include <signal.h> 27 29 #include <stdio.h> 28 30 #include <stdlib.h> … … 44 46 45 47 struct stat modtabst; 46 char modtabpath[ MAXPATHLEN];48 char modtabpath[PATH_MAX]; 47 49 char modtab[ICB_MTABLEN][ICB_MAXNICKLEN]; 48 50 int modtabcnt; 49 char srvname[ MAXHOSTNAMELEN];51 char srvname[NI_MAXHOST]; 50 52 int creategroups; 51 53 int foreground; 52 char logprefix[ MAXPATHLEN/2];54 char logprefix[PATH_MAX/2]; 53 55 int dodns = 1; 54 56 int dologging; -
logger.c
r4c2a775 rd27dc1e 22 22 #include <sys/uio.h> 23 23 #include <errno.h> 24 #include <limits.h> 24 25 #include <netdb.h> 25 26 #include <stdlib.h> … … 60 61 struct event ev_tick; 61 62 62 extern char logprefix[ MAXPATHLEN/2];63 extern char logprefix[PATH_MAX/2]; 63 64 extern int dologging; 64 65 … … 224 225 logger_open(char *group) 225 226 { 226 char path[ MAXPATHLEN];227 char path[PATH_MAX]; 227 228 FILE *fp = NULL; 228 229
Note:
See TracChangeset
for help on using the changeset viewer.