src/alloc-slab.c (SMALL_CUTOFF): Adjust to a multiple of 8.
src/alloc-srvx.c (srvx_malloc): Fix format string for LP64.
src/md5.h (UINT4): Fix typedef for LP64.
src/opserv.c (cmd_warn): Fix whitespace.
src/proto-p10.c (irc_server): Announce IPv6 support.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-33
# arch-tag: automatic-ChangeLog--srvx@srvx.net--2005-srvx/srvx--devo--1.3
#
+2005-11-17 20:43:26 GMT Michael Poole <mdpoole@troilus.org> patch-33
+
+ Summary:
+ Fixes for LP64 models; announce IPv6 support.
+ Revision:
+ srvx--devo--1.3--patch-33
+
+ src/alloc-slab.c (SMALL_CUTOFF): Adjust to a multiple of 8.
+
+ src/alloc-srvx.c (srvx_malloc): Fix format string for LP64.
+
+ src/md5.h (UINT4): Fix typedef for LP64.
+
+ src/opserv.c (cmd_warn): Fix whitespace.
+
+ src/proto-p10.c (irc_server): Announce IPv6 support.
+
+ modified files:
+ ChangeLog src/alloc-slab.c src/alloc-srvx.c src/md5.h
+ src/opserv.c src/proto-p10.c
+
+
2005-11-01 00:37:44 GMT Michael Poole <mdpoole@troilus.org> patch-32
Summary:
#define SLAB_MIN (2 * sizeof(void*))
#define SLAB_GRAIN sizeof(void*)
#define SLAB_ALIGN SLAB_GRAIN
-#define SMALL_CUTOFF 580
+#define SMALL_CUTOFF 576
/* Element size < SMALL_CUTOFF -> use small slabs.
* Larger elements are allocated directly using mmap(). The largest
* regularly allocated struct in srvx 1.x is smaller than
assert(block != NULL);
if (block->magic == ALLOC_MAGIC && block->file_id < file_ids_used) {
/* Only report the error, due to possible false positives. */
- log_module(MAIN_LOG, LOG_WARNING, "Detected possible reallocation: %p (called by %s:%u/%u; allocated by %u:%u/%u).",
- block, file, line, size, block->file_id, block->line, block->size);
+ log_module(MAIN_LOG, LOG_WARNING, "Detected possible reallocation: %p (called by %s:%u/%lu; allocated by %u:%u/%u).",
+ block, file, line, (unsigned long)size,
+ block->file_id, block->line, block->size);
}
memset(block, 0, sizeof(*block) + size);
memcpy((char*)(block + 1) + size, redzone, sizeof(redzone));
typedef unsigned short int UINT2;
/* UINT4 defines a four byte word */
-#if defined(__alpha)
+#if defined(__alpha) || defined(_LP64) || defined(__LP64__)
typedef unsigned int UINT4;
#else
typedef unsigned long int UINT4;
return 1;
}
-static MODCMD_FUNC(cmd_warn)
+static MODCMD_FUNC(cmd_warn)
{
char *reason, *message;
inttobase64(extranum, srv->num_mask, (srv->numeric[1] || (srv->num_mask >= 64*64)) ? 3 : 2);
if (srv == self) {
/* The +s, ignored by Run's ircu, means "service" to Undernet's ircu */
- putsock(P10_SERVER " %s %d %li %li J10 %s%s +s :%s",
+ putsock(P10_SERVER " %s %d %li %li J10 %s%s +s6 :%s",
srv->name, srv->hops+1, srv->boot, srv->link, srv->numeric, extranum, srv->description);
} else {
- putsock("%s " P10_SERVER " %s %d %li %li %c10 %s%s +s :%s",
+ putsock("%s " P10_SERVER " %s %d %li %li %c10 %s%s +s6 :%s",
self->numeric, srv->name, srv->hops+1, srv->boot, srv->link, (srv->self_burst ? 'J' : 'P'), srv->numeric, extranum, srv->description);
}
}