code cleanup
This commit is contained in:
parent
1ef0643fcc
commit
13808e3803
@ -27,10 +27,6 @@
|
|||||||
#undef HAVE_DECLARED_TIMEZONE
|
#undef HAVE_DECLARED_TIMEZONE
|
||||||
#undef HAVE_TM_GMTOFF
|
#undef HAVE_TM_GMTOFF
|
||||||
|
|
||||||
/* News postings */
|
|
||||||
#undef RESTAMP_FUTURE_POSTINGS
|
|
||||||
#undef RESTAMP_OLD_POSTINGS
|
|
||||||
|
|
||||||
/* From unix: */
|
/* From unix: */
|
||||||
#undef SHADOW_PASSWORD
|
#undef SHADOW_PASSWORD
|
||||||
#undef AGING
|
#undef AGING
|
||||||
|
12
configure
vendored
12
configure
vendored
@ -844,7 +844,7 @@ Optional Features:
|
|||||||
--enable-experiment Compile experimental code
|
--enable-experiment Compile experimental code
|
||||||
--enable-debugging Compile for debugging
|
--enable-debugging Compile for debugging
|
||||||
--enable-optimize Enable CPU optimize
|
--enable-optimize Enable CPU optimize
|
||||||
--enable-newbinkp Compile New Binkp code
|
--enable-newbinkp Compile Debugging Binkp code
|
||||||
--enable-newsgate Compile with newsgate
|
--enable-newsgate Compile with newsgate
|
||||||
|
|
||||||
Optional Packages:
|
Optional Packages:
|
||||||
@ -3076,16 +3076,6 @@ else
|
|||||||
NEWSGATE="No"
|
NEWSGATE="No"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
|
||||||
#define RESTAMP_OLD_POSTINGS 21
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
cat >>confdefs.h <<\_ACEOF
|
|
||||||
#define RESTAMP_FUTURE_POSTINGS 1
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
|
|
||||||
echo "$as_me:$LINENO: checking for re_comp in -lcompat" >&5
|
echo "$as_me:$LINENO: checking for re_comp in -lcompat" >&5
|
||||||
echo $ECHO_N "checking for re_comp in -lcompat... $ECHO_C" >&6
|
echo $ECHO_N "checking for re_comp in -lcompat... $ECHO_C" >&6
|
||||||
if test "${ac_cv_lib_compat_re_comp+set}" = set; then
|
if test "${ac_cv_lib_compat_re_comp+set}" = set; then
|
||||||
|
@ -93,7 +93,7 @@ AC_MSG_CHECKING(for cpuflags)
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(newbinkp, [ --enable-newbinkp Compile New Binkp code], [ newbinkp=$enableval ], [ newbinkp=no ])
|
AC_ARG_ENABLE(newbinkp, [ --enable-newbinkp Compile Debugging Binkp code], [ newbinkp=$enableval ], [ newbinkp=no ])
|
||||||
if test "$newbinkp" = "yes"; then
|
if test "$newbinkp" = "yes"; then
|
||||||
AC_DEFINE(USE_NEWBINKP)
|
AC_DEFINE(USE_NEWBINKP)
|
||||||
fi
|
fi
|
||||||
@ -109,13 +109,6 @@ else
|
|||||||
NEWSGATE="No"
|
NEWSGATE="No"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Defines for MBSE BBS (must use tests or --enable-stuff later)
|
|
||||||
dnl
|
|
||||||
AC_DEFINE_UNQUOTED(RESTAMP_OLD_POSTINGS, 21)
|
|
||||||
AC_DEFINE(RESTAMP_FUTURE_POSTINGS)
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Checks for libraries and functions.
|
dnl Checks for libraries and functions.
|
||||||
dnl
|
dnl
|
||||||
|
@ -1087,7 +1087,7 @@ int ftn2rfc(faddr *f, faddr *t, char *subj, char *origline, time_t mdate, int fl
|
|||||||
Send(newsmode, temp);
|
Send(newsmode, temp);
|
||||||
sprintf(temp,"X-Origin-Date: %s\n", rfcdate(mdate));
|
sprintf(temp,"X-Origin-Date: %s\n", rfcdate(mdate));
|
||||||
Send(newsmode, temp);
|
Send(newsmode, temp);
|
||||||
} else if ((mdate < now-14*24*60*60) && (mdate > time(&now)-RESTAMP_OLD_POSTINGS*24*60*60)) {
|
} else if ((mdate < now-14*24*60*60) && (mdate > time(&now)-21*24*60*60)) {
|
||||||
/*
|
/*
|
||||||
* Restamp old postings
|
* Restamp old postings
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user