"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ec_ui.c" between
ettercap-0.8.3.tar.gz and ettercap-0.8.3.1.tar.gz

About: ettercap is a multipurpose sniffer/interceptor/logger for switched LAN.

ec_ui.c  (ettercap-0.8.3):ec_ui.c  (ettercap-0.8.3.1)
skipping to change at line 214 skipping to change at line 214
SAFE_REALLOC(msg->message, size); SAFE_REALLOC(msg->message, size);
} }
/* log the messages if needed */ /* log the messages if needed */
if (EC_GBL_OPTIONS->msg_fd) { if (EC_GBL_OPTIONS->msg_fd) {
fprintf(EC_GBL_OPTIONS->msg_fd, "%s", msg->message); fprintf(EC_GBL_OPTIONS->msg_fd, "%s", msg->message);
fflush(EC_GBL_OPTIONS->msg_fd); fflush(EC_GBL_OPTIONS->msg_fd);
} }
#ifdef DEBUG
/* include user messages in debug log file */
DEBUG_MSG("USER_MSG(): %s", msg->message);
#endif
/* /*
* MUST use the mutex. * MUST use the mutex.
* this MAY be a different thread !! * this MAY be a different thread !!
*/ */
UI_MSG_LOCK; UI_MSG_LOCK;
/* add the message to the queue */ /* add the message to the queue */
STAILQ_INSERT_TAIL(&messages_queue, msg, next); STAILQ_INSERT_TAIL(&messages_queue, msg, next);
UI_MSG_UNLOCK; UI_MSG_UNLOCK;
 End of changes. 1 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)