chiark
/
gitweb
/
~ian
/
innduct.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debianisation (initial cut)
[innduct.git]
/
innduct.h
diff --git
a/innduct.h
b/innduct.h
index 08ab9bcde45a93f8b1fd18d2c486bcd35bb4fa3f..231524d04b0fdaaa54d5687fe10d474a66f71904 100644
(file)
--- a/
innduct.h
+++ b/
innduct.h
@@
-59,6
+59,7
@@
#include <time.h>
#include <math.h>
#include <ctype.h>
#include <time.h>
#include <math.h>
#include <ctype.h>
+#include <limits.h>
#include <oop.h>
#include <oop-read.h>
#include <oop.h>
#include <oop-read.h>
@@
-71,7
+72,7
@@
#define INNDCOMMCHILD_ESTATUS_FAIL 26
#define INNDCOMMCHILD_ESTATUS_NONESUCH 27
#define INNDCOMMCHILD_ESTATUS_FAIL 26
#define INNDCOMMCHILD_ESTATUS_NONESUCH 27
-#define MAX_LINE_FEEDFILE (NNTP_M
SGID_MAXLEN
+ sizeof(TOKEN)*2 + 10)
+#define MAX_LINE_FEEDFILE (NNTP_M
AXLEN_MSGID
+ sizeof(TOKEN)*2 + 10)
#define MAX_CLI_COMMAND 1000
#define VA va_list al; va_start(al,fmt)
#define MAX_CLI_COMMAND 1000
#define VA va_list al; va_start(al,fmt)
@@
-368,7
+369,7
@@
static inline int isewouldblock(int errnoval) {
INNLOGSET(die, "fatal", LOG_ERR) \
INNLOGSET(warn, "warning", LOG_WARNING) \
INNLOGSET(notice, "notice", LOG_NOTICE) \
INNLOGSET(die, "fatal", LOG_ERR) \
INNLOGSET(warn, "warning", LOG_WARNING) \
INNLOGSET(notice, "notice", LOG_NOTICE) \
- INNLOGSET(
trace, "trace", LOG_NOTICE
)
+ INNLOGSET(
debug, "debug", LOG_DEBUG
)
#define INNLOGSET_DECLARE(fn, pfx, sysloglevel) \
void duct_log_##fn(int l, const char *fmt, va_list al, int errval) \
PRINTF(3,0);
#define INNLOGSET_DECLARE(fn, pfx, sysloglevel) \
void duct_log_##fn(int l, const char *fmt, va_list al, int errval) \
PRINTF(3,0);