aboutsummaryrefslogtreecommitdiff
path: root/jim-syslog.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2010-01-24 11:12:50 +1000
committerSteve Bennett <steveb@workware.net.au>2010-10-15 11:02:41 +1000
commit571fa65a6f3cf1c0a11d8c3b46440fe8457fa6fb (patch)
tree407ada47686556fb16198c99b3c61ea595bdb6bd /jim-syslog.c
parent2d8564100c86466b71408b24a4c6932ec942e7c5 (diff)
downloadjimtcl-571fa65a6f3cf1c0a11d8c3b46440fe8457fa6fb.zip
jimtcl-571fa65a6f3cf1c0a11d8c3b46440fe8457fa6fb.tar.gz
jimtcl-571fa65a6f3cf1c0a11d8c3b46440fe8457fa6fb.tar.bz2
Build improvements, bug fixes and compiler warnings
Remove unimplemented 'after restart|expire' from eventloop Allow libjim to be build as a shared library On some platforms, regex.h needs stdlib.h first Use ualarm() only for times < 1 second Fix warnings found by clang static analyser *: printf/syslog %m isn't portable *: some variables set but never read *: some possible null pointer references (although mostly impossible) *: also minor fixes to jim unit tests Fix 'syslog -options <n>' Must null terminate readlink() result
Diffstat (limited to 'jim-syslog.c')
-rw-r--r--jim-syslog.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/jim-syslog.c b/jim-syslog.c
index 4a039ef..29f4d9c 100644
--- a/jim-syslog.c
+++ b/jim-syslog.c
@@ -45,7 +45,6 @@ static const char *priorities[] = {
[LOG_EMERG] = "emerg",
[LOG_ALERT] = "alert",
[LOG_CRIT] = "crit",
- [LOG_ERR] = "err",
[LOG_ERR] = "error",
[LOG_WARNING] = "warning",
[LOG_NOTICE] = "notice",
@@ -126,7 +125,6 @@ wrongargs:
closelog();
info->logOpened=0;
}
- continue;
}
else if (Jim_CompareStringImmediate(interp, argv[i], "-ident")) {
strncpy(info->ident, Jim_GetString(argv[i+1], NULL), sizeof(info->ident));