# HG changeset patch # User uh1763 # Date 957570578 -3600 # Node ID 32ba1198c6fafd61e7c45b9c8d5f37e0d652e296 # Parent bb6a1bf6127931ff80586f129674c1c46d677586 [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 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 . diff -r bb6a1bf61279 -r 32ba1198c6fa ChangeLog --- 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 + + * 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 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 . + + Fri May 5 23:39:52 CEST 2000 Uwe Hermann * client.c, client.h, common.h, config.c, config.h, content.c, content.h, diff -r bb6a1bf61279 -r 32ba1198c6fa Makefile.in --- 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@ diff -r bb6a1bf61279 -r 32ba1198c6fa README --- 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 diff -r bb6a1bf61279 -r 32ba1198c6fa TODO --- 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. diff -r bb6a1bf61279 -r 32ba1198c6fa configure --- 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 <&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 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 <&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 <&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 <&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 <&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 <&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 < #include @@ -1614,7 +1680,7 @@ #include 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 @@ -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 @@ -1670,7 +1736,7 @@ : else cat > conftest.$ac_ext < #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 < #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 <&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 <&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 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 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 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 <&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 < #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 < #include @@ -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 < #include @@ -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 < @@ -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 < #include @@ -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 <&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 <&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 <&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 <&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 <&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 diff -r bb6a1bf61279 -r 32ba1198c6fa configure.in --- 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. diff -r bb6a1bf61279 -r 32ba1198c6fa docs/Makefile.in --- 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@ diff -r bb6a1bf61279 -r 32ba1198c6fa docs/NOTES --- 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 -Last update: 4/2000 +Last update: 5/2000 diff -r bb6a1bf61279 -r 32ba1198c6fa docs/noffle.1 --- 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 .br Volker Wysk +.br +Jim Hague +.br +Uwe Hermann -1998-1999. +1998-2000. diff -r bb6a1bf61279 -r 32ba1198c6fa docs/noffle.conf.5 --- 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 .br +Uwe Hermann + 1998-2000. diff -r bb6a1bf61279 -r 32ba1198c6fa src/Makefile.in --- 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@ diff -r bb6a1bf61279 -r 32ba1198c6fa src/client.h --- 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 +#endif + #include #include "common.h" #include "database.h" diff -r bb6a1bf61279 -r 32ba1198c6fa src/common.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 +#endif + #include #include #include diff -r bb6a1bf61279 -r 32ba1198c6fa src/configfile.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 +#endif + #include "common.h" const char * Cfg_spoolDir( void ); diff -r bb6a1bf61279 -r 32ba1198c6fa src/content.c --- 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; diff -r bb6a1bf61279 -r 32ba1198c6fa src/content.h --- 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 +#endif + #include "over.h" /* diff -r bb6a1bf61279 -r 32ba1198c6fa src/control.c --- 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 +#endif + #include "control.h" #include #include "common.h" diff -r bb6a1bf61279 -r 32ba1198c6fa src/control.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 +#endif + #define CANCEL_OK 0 #define CANCEL_NO_SUCH_MSG 1 #define CANCEL_NEEDS_MSG 2 diff -r bb6a1bf61279 -r 32ba1198c6fa src/database.h --- 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 +#endif + #include #include "common.h" #include "dynamicstring.h" diff -r bb6a1bf61279 -r 32ba1198c6fa src/dynamicstring.c --- 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 +#endif + #include "dynamicstring.h" #include @@ -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 ); diff -r bb6a1bf61279 -r 32ba1198c6fa src/dynamicstring.h --- 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 +#endif + #include /* A dynamically growing string */ diff -r bb6a1bf61279 -r 32ba1198c6fa src/fetch.h --- 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 +#endif + #include "common.h" #include "database.h" #include "fetchlist.h" diff -r bb6a1bf61279 -r 32ba1198c6fa src/fetchlist.c --- 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 ); diff -r bb6a1bf61279 -r 32ba1198c6fa src/fetchlist.h --- 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 +#endif + #include "common.h" typedef enum { FULL, THREAD, OVER } FetchMode; diff -r bb6a1bf61279 -r 32ba1198c6fa src/group.h --- 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 +#endif + #include #include "common.h" diff -r bb6a1bf61279 -r 32ba1198c6fa src/itemlist.c --- 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 +#endif + #include "itemlist.h" #include #include @@ -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." ); diff -r bb6a1bf61279 -r 32ba1198c6fa src/itemlist.h --- 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 +#endif + #include struct ItemList; diff -r bb6a1bf61279 -r 32ba1198c6fa src/lock.h --- 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 +#endif + #include "common.h" /* Open all databases and set global lock. */ diff -r bb6a1bf61279 -r 32ba1198c6fa src/log.c --- 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 +#endif + #include #include #include "common.h" +#include "log.h" #define MAXLENGTH 240 diff -r bb6a1bf61279 -r 32ba1198c6fa src/log.h --- 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 +#endif + #include "common.h" /* diff -r bb6a1bf61279 -r 32ba1198c6fa src/noffle.c --- 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 +#endif + #include #include #include @@ -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; diff -r bb6a1bf61279 -r 32ba1198c6fa src/online.c --- 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 ) diff -r bb6a1bf61279 -r 32ba1198c6fa src/online.h --- 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 +#endif + Bool Online_true( void ); diff -r bb6a1bf61279 -r 32ba1198c6fa src/outgoing.h --- 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 +#endif + #include "common.h" #include "dynamicstring.h" diff -r bb6a1bf61279 -r 32ba1198c6fa src/over.c --- 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 +#endif + #include #include #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 ); diff -r bb6a1bf61279 -r 32ba1198c6fa src/over.h --- 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 +#endif + #include #include "common.h" diff -r bb6a1bf61279 -r 32ba1198c6fa src/post.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 +#endif + #include "common.h" /* Register an article for posting. */ diff -r bb6a1bf61279 -r 32ba1198c6fa src/protocol.c --- 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 ) diff -r bb6a1bf61279 -r 32ba1198c6fa src/protocol.h --- 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 +#endif + #include "dynamicstring.h" #include "over.h" diff -r bb6a1bf61279 -r 32ba1198c6fa src/pseudo.c --- 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; diff -r bb6a1bf61279 -r 32ba1198c6fa src/pseudo.h --- 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 +#endif + #include "over.h" /* diff -r bb6a1bf61279 -r 32ba1198c6fa src/request.c --- 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; diff -r bb6a1bf61279 -r 32ba1198c6fa src/request.h --- 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 +#endif + #include "common.h" /* Is request for message msgId from server serv already recorded? This diff -r bb6a1bf61279 -r 32ba1198c6fa src/server.c --- 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 ); diff -r bb6a1bf61279 -r 32ba1198c6fa src/server.h --- 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 +#endif + void Serv_run( void ); #endif diff -r bb6a1bf61279 -r 32ba1198c6fa src/util.c --- 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 +#endif + #include "util.h" #include #include @@ -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 ); } diff -r bb6a1bf61279 -r 32ba1198c6fa src/util.h --- 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 +#endif + #include #include "common.h" diff -r bb6a1bf61279 -r 32ba1198c6fa stamp-h.in --- a/stamp-h.in Fri May 05 22:50:13 2000 +0100 +++ b/stamp-h.in Sat May 06 00:49:38 2000 +0100 @@ -0,0 +1,1 @@ +timestamp