- Timestamp:
- Mar 5, 2014, 4:02:49 PM (11 years ago)
- Branches:
- master
- Children:
- a5893e9
- Parents:
- 55923b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
logger.c
r55923b7 r45bd56a 20 20 #include <sys/time.h> 21 21 #include <sys/uio.h> 22 #include <netinet/in.h>23 #include <arpa/inet.h>24 22 #include <errno.h> 25 23 #include <stdlib.h> … … 32 30 #include <event.h> 33 31 #include <pwd.h> 34 #include <netdb.h>35 32 36 33 #include "icb.h" … … 42 39 43 40 struct icbd_logentry { 44 time_t timestamp;45 41 char group[ICB_MAXGRPLEN]; 46 42 char nick[ICB_MAXNICKLEN]; … … 141 137 142 138 void 143 logger( time_t timestamp,char *group, char *nick, char *what)139 logger(char *group, char *nick, char *what) 144 140 { 145 141 struct icbd_logentry e; 146 142 struct iovec iov[2]; 147 143 148 e.timestamp = timestamp;149 144 strlcpy(e.group, group, ICB_MAXGRPLEN); 150 145 strlcpy(e.nick, nick, ICB_MAXNICKLEN);
Note:
See TracChangeset
for help on using the changeset viewer.