X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=innduct.git;a=blobdiff_plain;f=innduct.h;h=231524d04b0fdaaa54d5687fe10d474a66f71904;hp=69af7d95f348583294920895df7c26b16feae4d9;hb=HEAD;hpb=229c6d070b1ddb2cebb0a3f12bc71713795cd627 diff --git a/innduct.h b/innduct.h index 69af7d9..c85d057 100644 --- a/innduct.h +++ b/innduct.h @@ -2,25 +2,9 @@ * innduct * tailing reliable realtime streaming feeder for inn * - * Copyright (C) 2010 Ian Jackson - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - * (I believe that when you compile and link this as part of the inn2 - * build, with the Makefile runes I have provided, all the libraries - * and files which end up included in innduct are licence-compatible - * with GPLv3. If not then please let me know. -Ian Jackson.) + * Copyright Ian Jackson + * and contributors; see LICENCE.txt. + * SPDX-License-Identifier: GPL-3.0-or-later */ #ifndef INNDUCT_H @@ -72,7 +56,7 @@ #define INNDCOMMCHILD_ESTATUS_FAIL 26 #define INNDCOMMCHILD_ESTATUS_NONESUCH 27 -#define MAX_LINE_FEEDFILE (NNTP_MSGID_MAXLEN + sizeof(TOKEN)*2 + 10) +#define MAX_LINE_FEEDFILE (NNTP_MAXLEN_MSGID + sizeof(TOKEN)*2 + 10) #define MAX_CLI_COMMAND 1000 #define VA va_list al; va_start(al,fmt) @@ -322,7 +306,7 @@ void info(const char *fmt, ...) PRINTF(1,2); void dbg(const char *fmt, ...) PRINTF(1,2); void logv(int sysloglevel, const char *pfx, int errnoval, - const char *fmt, va_list al) PRINTF(5,0); + const char *fmt, va_list al) PRINTF(4,0); char *mvasprintf(const char *fmt, va_list al) PRINTF(1,0); char *masprintf(const char *fmt, ...) PRINTF(1,2); @@ -372,7 +356,7 @@ static inline int isewouldblock(int errnoval) { 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); + PRINTF(2,0); INNLOGSETS(INNLOGSET_DECLARE) /*----- duct.c -----*/