"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "logging/logging.c" between
shellinabox-2.19.tar.gz and shellinabox-2.20.tar.gz

About: shellinabox implements a web server that can export arbitrary command line tools to a web based terminal emulator. This emulator is accessible to any JavaScript and CSS enabled web browser. Fork of the no longer maintained original version on https://shellinabox.com/ respectively https://code.google.com/archive/p/shellinabox/.

logging.c  (shellinabox-2.19):logging.c  (shellinabox-2.20)
skipping to change at line 103 skipping to change at line 103
va_start(ap, fmt); va_start(ap, fmt);
debugMsg(MSG_WARN, fmt, ap); debugMsg(MSG_WARN, fmt, ap);
va_end(ap); va_end(ap);
} }
void error(const char *fmt, ...) { void error(const char *fmt, ...) {
va_list ap; va_list ap;
va_start(ap, fmt); va_start(ap, fmt);
debugMsg(MSG_ERROR, fmt, ap); debugMsg(MSG_ERROR, fmt, ap);
#ifdef HAVE_SYSLOG_H #ifdef HAVE_SYSLOG_H
vsyslog(LOG_ERR, fmt, ap); va_list apSyslog;
va_copy(apSyslog, ap);
va_start(apSyslog, fmt);
vsyslog(LOG_ERR, fmt, apSyslog);
va_end(apSyslog);
#endif #endif
va_end(ap); va_end(ap);
} }
void message(const char *fmt, ...) { void message(const char *fmt, ...) {
va_list ap; va_list ap;
va_start(ap, fmt); va_start(ap, fmt);
debugMsg(MSG_MESSAGE, fmt, ap); debugMsg(MSG_MESSAGE, fmt, ap);
va_end(ap); va_end(ap);
} }
void fatal(const char *fmt, ...) { void fatal(const char *fmt, ...) {
va_list ap; va_list ap;
va_start(ap, fmt); va_start(ap, fmt);
debugMsg(MSG_QUIET, fmt, ap); debugMsg(MSG_QUIET, fmt, ap);
#ifdef HAVE_SYSLOG_H #ifdef HAVE_SYSLOG_H
vsyslog(LOG_CRIT, fmt, ap); va_list apSyslog;
va_copy(apSyslog, ap);
va_start(apSyslog, fmt);
vsyslog(LOG_CRIT, fmt, apSyslog);
va_end(apSyslog);
syslog(LOG_CRIT, "[server] Aborting..."); syslog(LOG_CRIT, "[server] Aborting...");
#endif #endif
va_end(ap); va_end(ap);
_exit(1); _exit(1);
} }
int logIsDebug(void) { int logIsDebug(void) {
return verbosity >= MSG_DEBUG; return verbosity >= MSG_DEBUG;
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 10 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS