hard-coded value of -1.
* include/amq_defs.h (AMQ_STRLEN): increase default size from 2KB
to 16KB. We can afford it these days.
* libamu/strcasecmp.c (strcasecmp): use unsigned chars in
tolower() to avoid sign/size promotion bugs.
* libamu/xutil.c (switch_to_logfile): don't output to LOG_CONS by
default (it's unfriendly). If user really wants to, they can set
it in /etc/syslog.conf.
* config.{guess,sub}: update to latest versions.
+2005-09-30 Christos Zoulas <christos@zoulas.com>
+
+ * fsinfo/fsi_util.c (set_ether_if): use INADDR_NONE instead of
+ hard-coded value of -1.
+
+ * include/amq_defs.h (AMQ_STRLEN): increase default size from 2KB
+ to 16KB. We can afford it these days.
+
+ * libamu/strcasecmp.c (strcasecmp): use unsigned chars in
+ tolower() to avoid sign/size promotion bugs.
+
+ * libamu/xutil.c (switch_to_logfile): don't output to LOG_CONS by
+ default (it's unfriendly). If user really wants to, they can set
+ it in /etc/syslog.conf.
+
2005-09-29 Erez Zadok <ezk@cs.sunysb.edu>
* amq/pawd.c (find_mt): if the auto mount type is used, pawd could
Include test-attrcache script to test the NFS attribute cache behavior using
Amd.
+Tell syslog not to log automatically to /dev/console; it's unfriendly. If
+user really wants to, they can set it in /etc/syslog.conf.
+
- minor new ports:
i386-pc-linux-deb3.1
i386-unknown-netbsdelf3.0 (BETA)
case EF_INADDR:{
ep->e_inaddr.s_addr = inet_addr(v);
- if ((int) ep->e_inaddr.s_addr == -1)
+ if ((int) ep->e_inaddr.s_addr == INADDR_NONE)
yyerror("malformed IP dotted quad: %s", v);
XFREE(v);
}
#ifndef AMQ_SIZE
# define AMQ_SIZE 16384
#endif /* not AMQ_SIZE */
-#define AMQ_STRLEN 2048
+#define AMQ_STRLEN 16384
#define AMQ_PROGRAM ((u_long)300019)
#define AMQ_VERSION ((u_long)1)
#define AMQPROC_NULL ((u_long)0)
int
strcasecmp(const char *s1, const char *s2)
{
- const char *cp1 = s1;
- const char *cp2 = s2;
+ const unsigned char *cp1 = (const unsigned char *)s1;
+ const unsigned char *cp2 = (const unsigned char *)s2;
while (tolower(*cp1) == tolower(*cp2++))
if (*cp1++ == '\0')
new_logfp = stderr;
openlog(am_get_progname(),
LOG_PID
-# ifdef LOG_CONS
- | LOG_CONS
-# endif /* LOG_CONS */
# ifdef LOG_NOWAIT
| LOG_NOWAIT
# endif /* LOG_NOWAIT */