Mercurial > noffle
changeset 45:32ba1198c6fa noffle
[svn] * Makefile.in, configure, configure.in, docs/Makefile.in, src/Makefile.in:
Added checks for the mail and sort programs. ./configure will abort if
they're not found.
* README: Removed the paragraph about news client software, as it's the same
as the one in docs/NOTES.
* TODO: Removed 'expiring by groups' and
'move some text from noffle.1 to noffle.conf.5'.
* docs/NOTES: Changed the text about -DDEBUG to explain one should use
'./configure --enable-debug'.
* docs/noffle.1, docs/noffle.conf.5: Minor fixes. Added myself and Jim Hague
to the AUTHORS section :-)
* src/client.h, src/common.h, src/configfile.h, src/content.c, src/content.h,
src/control.c, src/control.h, src/database.h, src/dynamicstring.c,
src/dynamicstring.h, src/fetch.h, src/fetchlist.h, src/group.h,
src/itemlist.c, src/itemlist.h, src/lock.h, src/log.c, src/log.h,
src/noffle.c, src/online.h, src/outgoing.h, src/over.c, src/over.h,
src/post.h, src/protocol.h, src/pseudo.h, src/request.h, src/server.h,
src/util.c, src/util.h: Added the <config.h> include.
* src/content.c: Added missing include "content.h". Added a missing 'void'
in the declaration of clearCont().
* src/fetchlist.c: Casted fetchlist.size to (size_t) in a call to qsort(),
as qsort() expects a size_t. This removes a warning.
* src/noffle.c: Made doRequested() static. Added missing void to
enableCorefiles().
* src/log.c, src/protocol.c, src/online.c, src/pseudo.c: Added missing
includes.
* src/pseudo.c: Made genOv() and genPseudo() static.
* src/server.c: Added missing void to postArts(). Made touchArticle() static.
* src/util.c: Casted arguments of malloc() and memcpy() to size_t.
* src/dynamicstring.c, src/itemlist.c, src/over.c, src/request.c, src/util.c:
Removed casting of the result of malloc(). This is not necessary and
can hide a missing include of <stdlib.h>.
author | uh1763 |
---|---|
date | Sat, 06 May 2000 00:49:38 +0100 |
parents | bb6a1bf61279 |
children | 62b9392bceca |
files | ChangeLog Makefile.in README TODO configure configure.in docs/Makefile.in docs/NOTES docs/noffle.1 docs/noffle.conf.5 src/Makefile.in src/client.h src/common.h src/configfile.h src/content.c src/content.h src/control.c src/control.h src/database.h src/dynamicstring.c src/dynamicstring.h src/fetch.h src/fetchlist.c src/fetchlist.h src/group.h src/itemlist.c src/itemlist.h src/lock.h src/log.c src/log.h src/noffle.c src/online.c src/online.h src/outgoing.h src/over.c src/over.h src/post.h src/protocol.c src/protocol.h src/pseudo.c src/pseudo.h src/request.c src/request.h src/server.c src/server.h src/util.c src/util.h stamp-h.in |
diffstat | 48 files changed, 410 insertions(+), 159 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri May 05 22:50:13 2000 +0100 +++ b/ChangeLog Sat May 06 00:49:38 2000 +0100 @@ -3,6 +3,55 @@ ------------------------------------------------------------------------------- +Sat May 6 01:31:04 CEST 2000 Uwe Hermann <uh1763@bingo-ev.de> + + * Makefile.in, configure, configure.in, docs/Makefile.in, src/Makefile.in: + Added checks for the mail and sort programs. ./configure will abort if + they're not found. + + * README: Removed the paragraph about news client software, as it's the same + as the one in docs/NOTES. + + * TODO: Removed 'expiring by groups' and + 'move some text from noffle.1 to noffle.conf.5'. + + * docs/NOTES: Changed the text about -DDEBUG to explain one should use + './configure --enable-debug'. + + * docs/noffle.1, docs/noffle.conf.5: Minor fixes. Added myself and Jim Hague + to the AUTHORS section :-) + + * src/client.h, src/common.h, src/configfile.h, src/content.c, src/content.h, + src/control.c, src/control.h, src/database.h, src/dynamicstring.c, + src/dynamicstring.h, src/fetch.h, src/fetchlist.h, src/group.h, + src/itemlist.c, src/itemlist.h, src/lock.h, src/log.c, src/log.h, + src/noffle.c, src/online.h, src/outgoing.h, src/over.c, src/over.h, + src/post.h, src/protocol.h, src/pseudo.h, src/request.h, src/server.h, + src/util.c, src/util.h: Added the <config.h> include. + + * src/content.c: Added missing include "content.h". Added a missing 'void' + in the declaration of clearCont(). + + * src/fetchlist.c: Casted fetchlist.size to (size_t) in a call to qsort(), + as qsort() expects a size_t. This removes a warning. + + * src/noffle.c: Made doRequested() static. Added missing void to + enableCorefiles(). + + * src/log.c, src/protocol.c, src/online.c, src/pseudo.c: Added missing + includes. + + * src/pseudo.c: Made genOv() and genPseudo() static. + + * src/server.c: Added missing void to postArts(). Made touchArticle() static. + + * src/util.c: Casted arguments of malloc() and memcpy() to size_t. + + * src/dynamicstring.c, src/itemlist.c, src/over.c, src/request.c, src/util.c: + Removed casting of the result of malloc(). This is not necessary and + can hide a missing include of <stdlib.h>. + + Fri May 5 23:39:52 CEST 2000 Uwe Hermann <uh1763@bingo-ev.de> * client.c, client.h, common.h, config.c, config.h, content.c, content.h,
--- a/Makefile.in Fri May 05 22:50:13 2000 +0100 +++ b/Makefile.in Sat May 06 00:49:38 2000 +0100 @@ -62,8 +62,10 @@ CC = @CC@ CONFIGFILE = @CONFIGFILE@ DOCDIR = @DOCDIR@ +MAILPROG = @MAILPROG@ MAKEINFO = @MAKEINFO@ PACKAGE = @PACKAGE@ +SORTPROG = @SORTPROG@ SPOOLDIR = @SPOOLDIR@ VERSION = @VERSION@
--- a/README Fri May 05 22:50:13 2000 +0100 +++ b/README Sat May 06 00:49:38 2000 +0100 @@ -45,19 +45,7 @@ Compatibility with News Clients ------------------------------- -Subscribing to groups in full mode should work with any news reader. Caching -of articles is unnecessary, since NOFFLE already caches them and should be -switched off. - -Subscribing to groups in overview mode or thread mode requires the following -from the news reader program: - - * It must not cache articles at all (or allow to switch the cache off), - because the article bodies change from the pseudo body "marked for download" - to the real body. - - * The reader should rarely open article bodies automatically, because it will - mark them unwantedly for download. +See docs/NOTES for information about news client software. Getting NOFFLE
--- a/TODO Fri May 05 22:50:13 2000 +0100 +++ b/TODO Sat May 06 00:49:38 2000 +0100 @@ -13,11 +13,6 @@ * Add "hostname" config option for setting the FQHN in generated message IDs. - * Implement expiring by groups. There are some people requesting it and - it is useful. - - * Move some text from noffle.1 to noffle.conf.5 - * Read timeout when running as server and automatically close if client does not send data for a longer time.
--- a/configure Fri May 05 22:50:13 2000 +0100 +++ b/configure Sat May 06 00:49:38 2000 +0100 @@ -1247,12 +1247,78 @@ fi +# Extract the first word of "mail", so it can be a program name with args. +set dummy mail; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1254: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_MAILPROG'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$MAILPROG"; then + ac_cv_prog_MAILPROG="$MAILPROG" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_MAILPROG="mail" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +MAILPROG="$ac_cv_prog_MAILPROG" +if test -n "$MAILPROG"; then + echo "$ac_t""$MAILPROG" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +if test "x$MAILPROG" != "xmail"; then + { echo "configure: error: mail program not found." 1>&2; exit 1; } +fi + +# Extract the first word of "sort", so it can be a program name with args. +set dummy sort; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1287: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_SORTPROG'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$SORTPROG"; then + ac_cv_prog_SORTPROG="$SORTPROG" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_SORTPROG="sort" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +SORTPROG="$ac_cv_prog_SORTPROG" +if test -n "$SORTPROG"; then + echo "$ac_t""$SORTPROG" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +if test "x$SORTPROG" != "xsort"; then + { echo "configure: error: sort program not found." 1>&2; exit 1; } +fi + echo $ac_n "checking for AIX""... $ac_c" 1>&6 -echo "configure:1254: checking for AIX" >&5 +echo "configure:1320: checking for AIX" >&5 cat > conftest.$ac_ext <<EOF -#line 1256 "configure" +#line 1322 "configure" #include "confdefs.h" #ifdef _AIX yes @@ -1274,7 +1340,7 @@ echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 -echo "configure:1278: checking for POSIXized ISC" >&5 +echo "configure:1344: checking for POSIXized ISC" >&5 if test -d /etc/conf/kconfig.d && grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 then @@ -1296,17 +1362,17 @@ ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 -echo "configure:1300: checking for minix/config.h" >&5 +echo "configure:1366: checking for minix/config.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1305 "configure" +#line 1371 "configure" #include "confdefs.h" #include <minix/config.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1355,12 +1421,12 @@ # [ This is ripped from GNU tar. ] echo $ac_n "checking for gethostent""... $ac_c" 1>&6 -echo "configure:1359: checking for gethostent" >&5 +echo "configure:1425: checking for gethostent" >&5 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1364 "configure" +#line 1430 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char gethostent(); below. */ @@ -1383,7 +1449,7 @@ ; return 0; } EOF -if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_gethostent=yes" else @@ -1404,7 +1470,7 @@ if test $ac_cv_func_gethostent = no; then echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6 -echo "configure:1408: checking for gethostent in -lnsl" >&5 +echo "configure:1474: checking for gethostent in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1412,7 +1478,7 @@ ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <<EOF -#line 1416 "configure" +#line 1482 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -1423,7 +1489,7 @@ gethostent() ; return 0; } EOF -if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1452,12 +1518,12 @@ fi echo $ac_n "checking for setsockopt""... $ac_c" 1>&6 -echo "configure:1456: checking for setsockopt" >&5 +echo "configure:1522: checking for setsockopt" >&5 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1461 "configure" +#line 1527 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char setsockopt(); below. */ @@ -1480,7 +1546,7 @@ ; return 0; } EOF -if { (eval echo configure:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_setsockopt=yes" else @@ -1501,7 +1567,7 @@ if test $ac_cv_func_setsockopt = no; then echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6 -echo "configure:1505: checking for setsockopt in -lsocket" >&5 +echo "configure:1571: checking for setsockopt in -lsocket" >&5 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1509,7 +1575,7 @@ ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat > conftest.$ac_ext <<EOF -#line 1513 "configure" +#line 1579 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -1520,7 +1586,7 @@ setsockopt() ; return 0; } EOF -if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1551,7 +1617,7 @@ echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6 -echo "configure:1555: checking for gdbm_open in -lgdbm" >&5 +echo "configure:1621: checking for gdbm_open in -lgdbm" >&5 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1559,7 +1625,7 @@ ac_save_LIBS="$LIBS" LIBS="-lgdbm $LIBS" cat > conftest.$ac_ext <<EOF -#line 1563 "configure" +#line 1629 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -1570,7 +1636,7 @@ gdbm_open() ; return 0; } EOF -if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1601,12 +1667,12 @@ echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:1605: checking for ANSI C header files" >&5 +echo "configure:1671: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1610 "configure" +#line 1676 "configure" #include "confdefs.h" #include <stdlib.h> #include <stdarg.h> @@ -1614,7 +1680,7 @@ #include <float.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1631,7 +1697,7 @@ if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext <<EOF -#line 1635 "configure" +#line 1701 "configure" #include "confdefs.h" #include <string.h> EOF @@ -1649,7 +1715,7 @@ if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext <<EOF -#line 1653 "configure" +#line 1719 "configure" #include "confdefs.h" #include <stdlib.h> EOF @@ -1670,7 +1736,7 @@ : else cat > conftest.$ac_ext <<EOF -#line 1674 "configure" +#line 1740 "configure" #include "confdefs.h" #include <ctype.h> #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -1681,7 +1747,7 @@ exit (0); } EOF -if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -1709,12 +1775,12 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 -echo "configure:1713: checking for $ac_hdr that defines DIR" >&5 +echo "configure:1779: checking for $ac_hdr that defines DIR" >&5 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1718 "configure" +#line 1784 "configure" #include "confdefs.h" #include <sys/types.h> #include <$ac_hdr> @@ -1722,7 +1788,7 @@ DIR *dirp = 0; ; return 0; } EOF -if { (eval echo configure:1726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=yes" else @@ -1747,7 +1813,7 @@ # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 -echo "configure:1751: checking for opendir in -ldir" >&5 +echo "configure:1817: checking for opendir in -ldir" >&5 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1755,7 +1821,7 @@ ac_save_LIBS="$LIBS" LIBS="-ldir $LIBS" cat > conftest.$ac_ext <<EOF -#line 1759 "configure" +#line 1825 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -1766,7 +1832,7 @@ opendir() ; return 0; } EOF -if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1788,7 +1854,7 @@ else echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 -echo "configure:1792: checking for opendir in -lx" >&5 +echo "configure:1858: checking for opendir in -lx" >&5 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1796,7 +1862,7 @@ ac_save_LIBS="$LIBS" LIBS="-lx $LIBS" cat > conftest.$ac_ext <<EOF -#line 1800 "configure" +#line 1866 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -1807,7 +1873,7 @@ opendir() ; return 0; } EOF -if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1833,17 +1899,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1837: checking for $ac_hdr" >&5 +echo "configure:1903: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1842 "configure" +#line 1908 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1873,17 +1939,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1877: checking for $ac_hdr" >&5 +echo "configure:1943: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1882 "configure" +#line 1948 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1913,17 +1979,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1917: checking for $ac_hdr" >&5 +echo "configure:1983: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1922 "configure" +#line 1988 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1953,12 +2019,12 @@ echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:1957: checking for working const" >&5 +echo "configure:2023: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1962 "configure" +#line 2028 "configure" #include "confdefs.h" int main() { @@ -2007,7 +2073,7 @@ ; return 0; } EOF -if { (eval echo configure:2011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -2028,12 +2094,12 @@ fi echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:2032: checking for size_t" >&5 +echo "configure:2098: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2037 "configure" +#line 2103 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS @@ -2061,12 +2127,12 @@ fi echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:2065: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:2131: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2070 "configure" +#line 2136 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/time.h> @@ -2075,7 +2141,7 @@ struct tm *tp; ; return 0; } EOF -if { (eval echo configure:2079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -2096,12 +2162,12 @@ fi echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 -echo "configure:2100: checking whether struct tm is in sys/time.h or time.h" >&5 +echo "configure:2166: checking whether struct tm is in sys/time.h or time.h" >&5 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2105 "configure" +#line 2171 "configure" #include "confdefs.h" #include <sys/types.h> #include <time.h> @@ -2109,7 +2175,7 @@ struct tm *tp; tp->tm_sec; ; return 0; } EOF -if { (eval echo configure:2113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_tm=time.h else @@ -2131,12 +2197,12 @@ echo $ac_n "checking socklen_t""... $ac_c" 1>&6 -echo "configure:2135: checking socklen_t" >&5 +echo "configure:2201: checking socklen_t" >&5 if eval "test \"`echo '$''{'noffle_cv_type_socklen_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2140 "configure" +#line 2206 "configure" #include "confdefs.h" #include <sys/types.h> @@ -2146,7 +2212,7 @@ socklen_t s; ; return 0; } EOF -if { (eval echo configure:2150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* noffle_cv_type_socklen_t=yes else @@ -2172,12 +2238,12 @@ echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:2176: checking return type of signal handlers" >&5 +echo "configure:2242: checking return type of signal handlers" >&5 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2181 "configure" +#line 2247 "configure" #include "confdefs.h" #include <sys/types.h> #include <signal.h> @@ -2194,7 +2260,7 @@ int i; ; return 0; } EOF -if { (eval echo configure:2198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else @@ -2213,12 +2279,12 @@ echo $ac_n "checking for strftime""... $ac_c" 1>&6 -echo "configure:2217: checking for strftime" >&5 +echo "configure:2283: checking for strftime" >&5 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2222 "configure" +#line 2288 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char strftime(); below. */ @@ -2241,7 +2307,7 @@ ; return 0; } EOF -if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_strftime=yes" else @@ -2263,7 +2329,7 @@ echo "$ac_t""no" 1>&6 # strftime is in -lintl on SCO UNIX. echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 -echo "configure:2267: checking for strftime in -lintl" >&5 +echo "configure:2333: checking for strftime in -lintl" >&5 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2271,7 +2337,7 @@ ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <<EOF -#line 2275 "configure" +#line 2341 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -2282,7 +2348,7 @@ strftime() ; return 0; } EOF -if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2309,7 +2375,7 @@ fi echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6 -echo "configure:2313: checking for working fnmatch" >&5 +echo "configure:2379: checking for working fnmatch" >&5 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2320,11 +2386,11 @@ ac_cv_func_fnmatch_works=no else cat > conftest.$ac_ext <<EOF -#line 2324 "configure" +#line 2390 "configure" #include "confdefs.h" main() { exit (fnmatch ("a*", "abc", 0) != 0); } EOF -if { (eval echo configure:2328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:2394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_fnmatch_works=yes else @@ -2349,12 +2415,12 @@ for ac_func in fdopen vsnprintf snprintf __vsnprintf __snprintf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2353: checking for $ac_func" >&5 +echo "configure:2419: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2358 "configure" +#line 2424 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -2377,7 +2443,7 @@ ; return 0; } EOF -if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2404,12 +2470,12 @@ for ac_func in gethostname mkdir mktime select socket strerror strstr uname do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2408: checking for $ac_func" >&5 +echo "configure:2474: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2413 "configure" +#line 2479 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -2432,7 +2498,7 @@ ; return 0; } EOF -if { (eval echo configure:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2488,7 +2554,7 @@ noffle_cv_docdir=$withval else echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6 -echo "configure:2492: checking where to put the documentation" >&5 +echo "configure:2558: checking where to put the documentation" >&5 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2675,6 +2741,8 @@ s%@SET_MAKE@%$SET_MAKE%g s%@CC@%$CC%g s%@CPP@%$CPP%g +s%@MAILPROG@%$MAILPROG%g +s%@SORTPROG@%$SORTPROG%g s%@CONFIGFILE@%$CONFIGFILE%g s%@SPOOLDIR@%$SPOOLDIR%g s%@DOCDIR@%$DOCDIR%g
--- a/configure.in Fri May 05 22:50:13 2000 +0100 +++ b/configure.in Sat May 06 00:49:38 2000 +0100 @@ -28,6 +28,16 @@ AC_PROG_INSTALL AC_PROG_MAKE_SET +AC_CHECK_PROG(MAILPROG, mail, mail) +if test "x$MAILPROG" != "xmail"; then + AC_MSG_ERROR(mail program not found.) +fi + +AC_CHECK_PROG(SORTPROG, sort, sort) +if test "x$SORTPROG" != "xsort"; then + AC_MSG_ERROR(sort program not found.) +fi + dnl --------------------------------------------------------------------------- dnl System checks.
--- a/docs/Makefile.in Fri May 05 22:50:13 2000 +0100 +++ b/docs/Makefile.in Sat May 06 00:49:38 2000 +0100 @@ -62,8 +62,10 @@ CC = @CC@ CONFIGFILE = @CONFIGFILE@ DOCDIR = @DOCDIR@ +MAILPROG = @MAILPROG@ MAKEINFO = @MAKEINFO@ PACKAGE = @PACKAGE@ +SORTPROG = @SORTPROG@ SPOOLDIR = @SPOOLDIR@ VERSION = @VERSION@
--- a/docs/NOTES Fri May 05 22:50:13 2000 +0100 +++ b/docs/NOTES Sat May 06 00:49:38 2000 +0100 @@ -22,11 +22,17 @@ mode. Please send me reports on your experiences. If a reader does not work at all, -compile NOFFLE with the -DDEBUG option in CFLAGS. Then you will see every NNTP -command and status line in /var/log/news. Most interesting is the last line, -before the reader (or NOFFLE) hangs :-) Please also send me a short mail, if -you successfully used NOFFLE with a certain version of a news reader for a -longer time, so that I can keep this list up-to-date. +compile NOFFLE with + + ./configure --enable-debug + make + make install + +Then you will see every NNTP command and status line in /var/log/news. Most +interesting is the last line, before the reader (or NOFFLE) hangs :-) +Please also send me a short mail, if you successfully used NOFFLE with a +certain version of a news reader for a longer time, so that I can keep this +list up-to-date. kexpress 0.2.0 @@ -184,5 +190,5 @@ -- Markus Enzenberger <markus.enzenberger@t-online.de> -Last update: 4/2000 +Last update: 5/2000
--- a/docs/noffle.1 Fri May 05 22:50:13 2000 +0100 +++ b/docs/noffle.1 Sat May 06 00:49:38 2000 +0100 @@ -1,5 +1,5 @@ .TH noffle 1 -.\" $Id: noffle.1 48 2000-05-05 20:26:14Z uh1763 $ +.\" $Id: noffle.1 51 2000-05-05 23:49:38Z uh1763 $ .SH NAME noffle \- Usenet package optimized for dialup connections. @@ -146,7 +146,7 @@ database. Should be run regularily from .BR crond (8). -.TP +.br The default expire period is 14 days. This can be changed and custom expiry periods set for individual newsgroups or sets of newsgroups in @@ -348,5 +348,9 @@ Markus Enzenberger <markus.enzenberger@t-online.de> .br Volker Wysk <volker.wysk@student.uni-tuebingen.de> +.br +Jim Hague <jim.hague@acm.org> +.br +Uwe Hermann <uh1763@bingo-ev.de> -1998-1999. +1998-2000.
--- a/docs/noffle.conf.5 Fri May 05 22:50:13 2000 +0100 +++ b/docs/noffle.conf.5 Sat May 06 00:49:38 2000 +0100 @@ -1,5 +1,5 @@ .TH noffle.conf 5 -.\" $Id: noffle.conf.5 48 2000-05-05 20:26:14Z uh1763 $ +.\" $Id: noffle.conf.5 51 2000-05-05 23:49:38Z uh1763 $ .SH NAME noffle.conf \- Configuration file for NOFFLE news server @@ -195,6 +195,8 @@ .br Jim Hague <jim.hague@acm.org> .br +Uwe Hermann <uh1763@bingo-ev.de> + 1998-2000.
--- a/src/Makefile.in Fri May 05 22:50:13 2000 +0100 +++ b/src/Makefile.in Sat May 06 00:49:38 2000 +0100 @@ -63,8 +63,10 @@ CC = @CC@ CONFIGFILE = @CONFIGFILE@ DOCDIR = @DOCDIR@ +MAILPROG = @MAILPROG@ MAKEINFO = @MAKEINFO@ PACKAGE = @PACKAGE@ +SORTPROG = @SORTPROG@ SPOOLDIR = @SPOOLDIR@ VERSION = @VERSION@
--- a/src/client.h Fri May 05 22:50:13 2000 +0100 +++ b/src/client.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ Noffle acting as client to other NNTP-servers - $Id: client.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: client.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef CLIENT_H #define CLIENT_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include <time.h> #include "common.h" #include "database.h"
--- a/src/common.h Fri May 05 22:50:13 2000 +0100 +++ b/src/common.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ Common declarations. - $Id: common.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: common.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef COMMON_H #define COMMON_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include <stdio.h> #include <stdlib.h> #include <string.h>
--- a/src/configfile.h Fri May 05 22:50:13 2000 +0100 +++ b/src/configfile.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ Common declarations and handling of the configuration file. - $Id: configfile.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: configfile.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef CONFIGFILE_H #define CONFIGFILE_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include "common.h" const char * Cfg_spoolDir( void );
--- a/src/content.c Fri May 05 22:50:13 2000 +0100 +++ b/src/content.c Sat May 06 00:49:38 2000 +0100 @@ -1,7 +1,7 @@ /* content.c - $Id: content.c 49 2000-05-05 21:45:56Z uh1763 $ + $Id: content.c 51 2000-05-05 23:49:38Z uh1763 $ */ #if HAVE_CONFIG_H @@ -21,6 +21,7 @@ #include "over.h" #include "pseudo.h" #include "util.h" +#include "content.h" struct { @@ -80,7 +81,7 @@ /* Remove all overviews from content. */ static void -clearCont() +clearCont( void ) { int i;
--- a/src/content.h Fri May 05 22:50:13 2000 +0100 +++ b/src/content.h Sat May 06 00:49:38 2000 +0100 @@ -8,12 +8,16 @@ filename SPOOLDIR/overview/GROUPNAME. One entire overview file is read and cached in memory, at a time. - $Id: content.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: content.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef CONT_H #define CONT_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include "over.h" /*
--- a/src/control.c Fri May 05 22:50:13 2000 +0100 +++ b/src/control.c Sat May 06 00:49:38 2000 +0100 @@ -1,9 +1,13 @@ /* control.c - $Id: control.c 49 2000-05-05 21:45:56Z uh1763 $ + $Id: control.c 51 2000-05-05 23:49:38Z uh1763 $ */ +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include "control.h" #include <stdio.h> #include "common.h"
--- a/src/control.h Fri May 05 22:50:13 2000 +0100 +++ b/src/control.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ Control actions needed by server and command line. - $Id: control.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: control.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef CONTROL_H #define CONTROL_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #define CANCEL_OK 0 #define CANCEL_NO_SUCH_MSG 1 #define CANCEL_NEEDS_MSG 2
--- a/src/database.h Fri May 05 22:50:13 2000 +0100 +++ b/src/database.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ Article database. - $Id: database.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: database.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef DB_H #define DB_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include <time.h> #include "common.h" #include "dynamicstring.h"
--- a/src/dynamicstring.c Fri May 05 22:50:13 2000 +0100 +++ b/src/dynamicstring.c Sat May 06 00:49:38 2000 +0100 @@ -1,9 +1,13 @@ /* dynamicstring.c - $Id: dynamicstring.c 49 2000-05-05 21:45:56Z uh1763 $ + $Id: dynamicstring.c 51 2000-05-05 23:49:38Z uh1763 $ */ +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include "dynamicstring.h" #include <sys/types.h> @@ -36,7 +40,7 @@ { DynStr *s; - if ( ! ( s = (DynStr *) malloc( sizeof( DynStr ) ) ) ) + if ( ! ( s = malloc( sizeof( DynStr ) ) ) ) { Log_err( "Allocation of DynStr failed" ); exit( EXIT_FAILURE );
--- a/src/dynamicstring.h Fri May 05 22:50:13 2000 +0100 +++ b/src/dynamicstring.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ String utilities - $Id: dynamicstring.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: dynamicstring.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef DYNAMICSTRING_H #define DYNAMICSTRING_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include <sys/types.h> /* A dynamically growing string */
--- a/src/fetch.h Fri May 05 22:50:13 2000 +0100 +++ b/src/fetch.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ Do the daily business by using client.c - $Id: fetch.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: fetch.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef FETCH_H #define FETCH_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include "common.h" #include "database.h" #include "fetchlist.h"
--- a/src/fetchlist.c Fri May 05 22:50:13 2000 +0100 +++ b/src/fetchlist.c Sat May 06 00:49:38 2000 +0100 @@ -1,7 +1,7 @@ /* fetchlist.c - $Id: fetchlist.c 49 2000-05-05 21:45:56Z uh1763 $ + $Id: fetchlist.c 51 2000-05-05 23:49:38Z uh1763 $ */ #if HAVE_CONFIG_H @@ -138,8 +138,8 @@ const char *file = getFile(); const char *modeStr = ""; - qsort( fetchlist.elem, fetchlist.size, sizeof( fetchlist.elem[ 0 ] ), - compareElem ); + qsort( fetchlist.elem, (size_t)fetchlist.size, + sizeof( fetchlist.elem[ 0 ] ), compareElem ); if ( ! ( f = fopen( file, "w" ) ) ) { Log_err( "Could not open %s for writing", file );
--- a/src/fetchlist.h Fri May 05 22:50:13 2000 +0100 +++ b/src/fetchlist.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ List of groups that are to be fetched presently. - $Id: fetchlist.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: fetchlist.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef FETCHLIST_H #define FETCHLIST_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include "common.h" typedef enum { FULL, THREAD, OVER } FetchMode;
--- a/src/group.h Fri May 05 22:50:13 2000 +0100 +++ b/src/group.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ Groups database - $Id: group.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: group.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef GRP_H #define GRP_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include <time.h> #include "common.h"
--- a/src/itemlist.c Fri May 05 22:50:13 2000 +0100 +++ b/src/itemlist.c Sat May 06 00:49:38 2000 +0100 @@ -1,9 +1,13 @@ /* itemlist.c - $Id: itemlist.c 49 2000-05-05 21:45:56Z uh1763 $ + $Id: itemlist.c 51 2000-05-05 23:49:38Z uh1763 $ */ +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include "itemlist.h" #include <ctype.h> #include <string.h> @@ -27,14 +31,14 @@ char *p; Bool inItem; - res = (ItemList *) malloc( sizeof( ItemList ) ); + res = malloc( sizeof( ItemList ) ); if ( res == NULL ) { Log_err( "Malloc of ItemList failed." ); exit( EXIT_FAILURE ); } - res->list = (char *) malloc ( strlen(list) + 2 ); + res->list = malloc ( strlen(list) + 2 ); if ( res->list == NULL ) { Log_err( "Malloc of ItemList.list failed." );
--- a/src/itemlist.h Fri May 05 22:50:13 2000 +0100 +++ b/src/itemlist.h Sat May 06 00:49:38 2000 +0100 @@ -5,11 +5,15 @@ header lines) and provide a convenient way of accessing the individual items. - $Id: itemlist.h 49 2000-05-05 21:45:56Z uh1763 $ */ + $Id: itemlist.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef ITEMLIST_H #define ITEMLIST_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include <sys/types.h> struct ItemList;
--- a/src/lock.h Fri May 05 22:50:13 2000 +0100 +++ b/src/lock.h Sat May 06 00:49:38 2000 +0100 @@ -5,12 +5,16 @@ articla database, groups database, outgoing articles database, requests database. Handles global lock. - $Id: lock.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: lock.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef LOCK_H #define LOCK_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include "common.h" /* Open all databases and set global lock. */
--- a/src/log.c Fri May 05 22:50:13 2000 +0100 +++ b/src/log.c Sat May 06 00:49:38 2000 +0100 @@ -1,12 +1,17 @@ /* log.c - $Id: log.c 49 2000-05-05 21:45:56Z uh1763 $ + $Id: log.c 51 2000-05-05 23:49:38Z uh1763 $ */ +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include <syslog.h> #include <stdarg.h> #include "common.h" +#include "log.h" #define MAXLENGTH 240
--- a/src/log.h Fri May 05 22:50:13 2000 +0100 +++ b/src/log.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ Print log messages to syslog, stdout/stderr. - $Id: log.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: log.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef LOG_H #define LOG_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include "common.h" /*
--- a/src/noffle.c Fri May 05 22:50:13 2000 +0100 +++ b/src/noffle.c Sat May 06 00:49:38 2000 +0100 @@ -10,9 +10,13 @@ received for some seconds (to allow multiple clients connect at the same time). - $Id: noffle.c 49 2000-05-05 21:45:56Z uh1763 $ + $Id: noffle.c 51 2000-05-05 23:49:38Z uh1763 $ */ +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include <ctype.h> #include <errno.h> #include <getopt.h> @@ -40,6 +44,7 @@ #include "request.h" #include "lock.h" + struct Noffle { Bool queryGrps; @@ -112,7 +117,7 @@ /* List requested articles. List for all servers if serv = "all" or serv = NULL. */ -void +static void doRequested( const char *arg ) { Str serv; @@ -510,7 +515,7 @@ to spool directory, where news has write permissions. */ static void -enableCorefiles() +enableCorefiles( void ) { struct rlimit lim;
--- a/src/online.c Fri May 05 22:50:13 2000 +0100 +++ b/src/online.c Sat May 06 00:49:38 2000 +0100 @@ -1,7 +1,7 @@ /* online.c - $Id: online.c 49 2000-05-05 21:45:56Z uh1763 $ + $Id: online.c 51 2000-05-05 23:49:38Z uh1763 $ */ #if HAVE_CONFIG_H @@ -13,6 +13,7 @@ #include "common.h" #include "configfile.h" #include "log.h" +#include "online.h" static void fileOnline( Str s )
--- a/src/online.h Fri May 05 22:50:13 2000 +0100 +++ b/src/online.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ Online/offline status. - $Id: online.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: online.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef ONLINE_H #define ONLINE_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + Bool Online_true( void );
--- a/src/outgoing.h Fri May 05 22:50:13 2000 +0100 +++ b/src/outgoing.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ Collection of posted articles. - $Id: outgoing.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: outgoing.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef OUT_H #define OUT_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include "common.h" #include "dynamicstring.h"
--- a/src/over.c Fri May 05 22:50:13 2000 +0100 +++ b/src/over.c Sat May 06 00:49:38 2000 +0100 @@ -1,9 +1,13 @@ /* over.c - $Id: over.c 49 2000-05-05 21:45:56Z uh1763 $ + $Id: over.c 51 2000-05-05 23:49:38Z uh1763 $ */ +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include <errno.h> #include <time.h> #include "configfile.h" @@ -35,7 +39,7 @@ { Over *ov; - if ( ! ( ov = (Over *)malloc( sizeof( Over ) ) ) ) + if ( ! ( ov = malloc( sizeof( Over ) ) ) ) { Log_err( "Cannot allocate Over" ); exit( EXIT_FAILURE );
--- a/src/over.h Fri May 05 22:50:13 2000 +0100 +++ b/src/over.h Sat May 06 00:49:38 2000 +0100 @@ -5,12 +5,16 @@ content.c. An article overview contains important article properties, such as date, from, subject. - $Id: over.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: over.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef OVER_H #define OVER_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include <time.h> #include "common.h"
--- a/src/post.h Fri May 05 22:50:13 2000 +0100 +++ b/src/post.h Sat May 06 00:49:38 2000 +0100 @@ -5,12 +5,16 @@ (i.e. received via at the server via a POST), and add it to the database and (possibly multiple) group(s). - $Id: post.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: post.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef POST_H #define POST_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include "common.h" /* Register an article for posting. */
--- a/src/protocol.c Fri May 05 22:50:13 2000 +0100 +++ b/src/protocol.c Sat May 06 00:49:38 2000 +0100 @@ -1,7 +1,7 @@ /* protocol.c - $Id: protocol.c 49 2000-05-05 21:45:56Z uh1763 $ + $Id: protocol.c 51 2000-05-05 23:49:38Z uh1763 $ */ #if HAVE_CONFIG_H @@ -18,6 +18,7 @@ #include "log.h" #include "over.h" #include "util.h" +#include "protocol.h" Bool Prt_getLn( Str line, FILE *f )
--- a/src/protocol.h Fri May 05 22:50:13 2000 +0100 +++ b/src/protocol.h Sat May 06 00:49:38 2000 +0100 @@ -4,12 +4,16 @@ Functions related with the NNTP protocol which are useful for both the server and the client. - $Id: protocol.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: protocol.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef PRT_H #define PRT_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include "dynamicstring.h" #include "over.h"
--- a/src/pseudo.c Fri May 05 22:50:13 2000 +0100 +++ b/src/pseudo.c Sat May 06 00:49:38 2000 +0100 @@ -1,7 +1,7 @@ /* pseudo.c - $Id: pseudo.c 49 2000-05-05 21:45:56Z uh1763 $ + $Id: pseudo.c 51 2000-05-05 23:49:38Z uh1763 $ */ #if HAVE_CONFIG_H @@ -20,8 +20,9 @@ #include "log.h" #include "protocol.h" #include "util.h" +#include "pseudo.h" -Over * +static Over * genOv( const char *rawSubj, const char *rawBody, const char *suffix ) { size_t bytes, lines; @@ -156,7 +157,7 @@ "\t[ Please contact your newsmaster to remove this problem. ]\n"; } -void +static void genPseudo( const char *rawSubj, const char* rawBody ) { Over *ov;
--- a/src/pseudo.h Fri May 05 22:50:13 2000 +0100 +++ b/src/pseudo.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ Handling of pseudo articles. - $Id: pseudo.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: pseudo.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef PSEUDO_H #define PSEUDO_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include "over.h" /*
--- a/src/request.c Fri May 05 22:50:13 2000 +0100 +++ b/src/request.c Sat May 06 00:49:38 2000 +0100 @@ -3,7 +3,7 @@ Collection of articles that are marked for download. - $Id: request.c 49 2000-05-05 21:45:56Z uh1763 $ + $Id: request.c 51 2000-05-05 23:49:38Z uh1763 $ */ #if HAVE_CONFIG_H @@ -83,7 +83,7 @@ /* create new Reqserv and queue it */ static Reqserv* newReqserv(const char* serv) { - Reqserv* rs = (Reqserv*) malloc(sizeof(Reqserv)); + Reqserv* rs = malloc(sizeof(Reqserv)); rs->serv = strcpy(malloc(strlen(serv)+1), serv); rs->reql = 0; rs->reql_length = 0;
--- a/src/request.h Fri May 05 22:50:13 2000 +0100 +++ b/src/request.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ Collection of requested articles. - $Id: request.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: request.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef REQ_H #define REQ_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include "common.h" /* Is request for message msgId from server serv already recorded? This
--- a/src/server.c Fri May 05 22:50:13 2000 +0100 +++ b/src/server.c Sat May 06 00:49:38 2000 +0100 @@ -1,7 +1,7 @@ /* server.c - $Id: server.c 49 2000-05-05 21:45:56Z uh1763 $ + $Id: server.c 51 2000-05-05 23:49:38Z uh1763 $ */ #if HAVE_CONFIG_H @@ -211,7 +211,7 @@ } static void -postArts() +postArts( void ) { Str serv; @@ -379,7 +379,7 @@ return TRUE; } -void +static void touchArticle( const char *msgId ) { int stat = Db_stat( msgId );
--- a/src/server.h Fri May 05 22:50:13 2000 +0100 +++ b/src/server.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ Be NNTP server on stdin/stdout. - $Id: server.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: server.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef SERV_H #define SERV_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + void Serv_run( void ); #endif
--- a/src/util.c Fri May 05 22:50:13 2000 +0100 +++ b/src/util.c Sat May 06 00:49:38 2000 +0100 @@ -1,9 +1,13 @@ /* util.c - $Id: util.c 49 2000-05-05 21:45:56Z uh1763 $ + $Id: util.c 51 2000-05-05 23:49:38Z uh1763 $ */ +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include "util.h" #include <errno.h> #include <ctype.h> @@ -246,10 +250,10 @@ Utl_allocAndCpy( char **dst, const char *src ) { int len = strlen( src ); - if ( ! ( *dst = (char *)malloc( len + 1 ) ) ) + if ( ! ( *dst = malloc( (size_t)len + 1 ) ) ) { Log_err( "Cannot allocate string with length %lu", strlen( src ) ); exit( EXIT_FAILURE ); } - memcpy( *dst, src, len + 1 ); + memcpy( *dst, src, (size_t)len + 1 ); }
--- a/src/util.h Fri May 05 22:50:13 2000 +0100 +++ b/src/util.h Sat May 06 00:49:38 2000 +0100 @@ -3,12 +3,16 @@ Miscellaneous helper functions. - $Id: util.h 49 2000-05-05 21:45:56Z uh1763 $ + $Id: util.h 51 2000-05-05 23:49:38Z uh1763 $ */ #ifndef UTL_H #define UTL_H +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include <time.h> #include "common.h"