and a function return type fix for older systems.
+2002-09-12 Paul D. Smith <psmith@gnu.org>
+
+ * Makefile.am (loadavg_SOURCES, loadavg.c): Tiptoe around automake
+ so it doesn't complain about getloadavg.c.
+
+ * commands.c (set_file_variables): Make sure we always alloca() at
+ least 1 character for the value of $? (for '\0').
+
2002-09-11 Paul D. Smith <psmith@gnu.org>
* hash.h (STRING_COMPARE, ISTRING_COMPARE, STRING_N_COMPARE): Fix
# The loadavg function is invoked during "make check" to test getloadavg.
noinst_PROGRAMS = loadavg
-loadavg_SOURCES = getloadavg.c
+loadavg_SOURCES = loadavg.c
loadavg_CFLAGS = -DTEST
loadavg_LDADD = @GETLOADAVG_LIBS@
+loadavg.c: $(srcdir)/getloadavg.c
+ cp $(srcdir)/getloadavg.c loadavg.c
+
# > check-regression
#
# Look for the make test suite, and run it if found and we can find perl.
cp = plus_value = (char *) alloca (plus_len);
- qmark_len = plus_len; /* Will be this or less. */
+ qmark_len = plus_len + 1; /* Will be this or less. */
for (d = file->deps; d != 0; d = d->next)
if (! d->ignore_mtime)
{
#undef strerror
-const char *
+char *
strerror (errnum)
int errnum;
{