Changeset 0519a87 in code
- Timestamp:
- Jan 18, 2015, 8:46:13 PM (10 years ago)
- Branches:
- master
- Children:
- cb7c494
- Parents:
- 8f5ba64
- git-author:
- Mike Belopuhov <mike@…> (01/18/15 16:05:42)
- git-committer:
- Mike Belopuhov <mike@…> (01/18/15 20:46:13)
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
cmd.c
r8f5ba64 r0519a87 15 15 */ 16 16 17 #include <sys/ param.h>17 #include <sys/types.h> 18 18 #include <sys/queue.h> 19 #include <netdb.h> 19 20 #include <stdio.h> 20 21 #include <stdlib.h> -
icb.c
r8f5ba64 r0519a87 15 15 */ 16 16 17 #include <sys/ param.h>17 #include <sys/types.h> 18 18 #include <sys/queue.h> 19 #include <netdb.h> 19 20 #include <stdarg.h> 20 21 #include <stdio.h> … … 31 32 32 33 extern int creategroups; 33 extern char srvname[ MAXHOSTNAMELEN];34 extern char srvname[NI_MAXHOST]; 34 35 35 36 void icb_command(struct icb_session *, char *, char *); … … 50 51 (void)gethostname(srvname, sizeof srvname); 51 52 /* 52 * MAXHOSTNAMELENis usually greater than what we53 * NI_MAXHOST is usually greater than what we 53 54 * can actually send, hence truncation: 54 55 */ … … 185 186 if (client && strlen(client) > 0) 186 187 icb_vis(is->client, client, sizeof is->client, VIS_SP); 188 else 189 strlcpy(is->client, is->nick, sizeof is->client); 187 190 is->group = ig; 188 191 is->login = time(NULL); -
icb.h
r8f5ba64 r0519a87 77 77 char client[ICB_MAXNICKLEN]; 78 78 char host[ICB_MAXHOSTLEN]; 79 char hostname[ MAXHOSTNAMELEN];79 char hostname[NI_MAXHOST]; 80 80 char buffer[ICB_MSGSIZE]; 81 81 struct sockaddr_storage ss; -
icbd.h
r8f5ba64 r0519a87 20 20 #define TCP_BACKLOG 5 21 21 22 #ifndef MIN 23 #define MIN(x, y) ((x) < (y) ? (x) : (y)) 24 #endif 25 22 26 #define EVBUFFER_FD(x) (EVENT_FD(&(x)->ev_read)) 23 27 -
logger.c
r8f5ba64 r0519a87 16 16 */ 17 17 18 #include <sys/ param.h>18 #include <sys/types.h> 19 19 #include <sys/socket.h> 20 20 #include <sys/stat.h> 21 21 #include <sys/time.h> 22 #include <sys/types.h>23 22 #include <sys/uio.h> 24 23 #include <errno.h> 24 #include <netdb.h> 25 25 #include <stdlib.h> 26 26 #include <string.h>
Note:
See TracChangeset
for help on using the changeset viewer.