summaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
authortrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-13 05:22:13 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-13 05:22:13 +0000
commit3fb17634a05f1bd4155d2b7fd851c91fc516d1df (patch)
tree17fd46a3f19e3f8682693755a5636fc7144999ca /src/modules.c
parentee5de492f765f02b09fee772540017fb5ea1007e (diff)
BUILD : 1.7.5 (392) BUGS : N/A NOTES : More code tidy with strict enabled, some clean up of Unreal32
git-svn-id: svn://svn.anope.org/anope/trunk@392 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@257 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules.c b/src/modules.c
index f764fab1d..ce353e5b2 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -801,7 +801,7 @@ int displayCommand(Command * c)
int i = 0;
alog("Displaying command list for %s", c->name);
for (cmd = c; cmd; cmd = cmd->next) {
- alog("%d: %p", ++i, cmd);
+ alog("%d: 0x%p", ++i, (void *) cmd);
}
alog("end");
return 0;
@@ -844,7 +844,7 @@ int displayMessage(Message * m)
int i = 0;
alog("Displaying message list for %s", m->name);
for (msg = m; msg; msg = msg->next) {
- alog("%d: %p", ++i, msg);
+ alog("%d: 0x%p", ++i, (void *) msg);
}
alog("end");
return 0;
@@ -886,7 +886,7 @@ int addCommand(CommandHash * cmdTable[], Command * c, int pos)
c->next = current->c;
current->c = c;
if (debug)
- alog("existing cmd: (%p), new cmd (%p)", c->next, c);
+ alog("existing cmd: (%p), new cmd (0x%p)", c->next, (void *) c);
return MOD_ERR_OK;
} else if (pos == 2) {
@@ -894,7 +894,7 @@ int addCommand(CommandHash * cmdTable[], Command * c, int pos)
while (tail->next)
tail = tail->next;
if (debug)
- alog("existing cmd: (%p), new cmd (%p)", tail, c);
+ alog("existing cmd: (%p), new cmd (0x%p)", tail, (void *) c);
tail->next = c;
c->next = NULL;
@@ -1108,14 +1108,14 @@ int addMessage(MessageHash * msgTable[], Message * m, int pos)
m->next = current->m;
current->m = m;
if (debug)
- alog("existing msg: (%p), new msg (%p)", m->next, m);
+ alog("existing msg: (%p), new msg (0x%p)", m->next, (void *) m);
return MOD_ERR_OK;
} else if (pos == 2) {
tail = current->m;
while (tail->next)
tail = tail->next;
if (debug)
- alog("existing msg: (%p), new msg (%p)", tail, m);
+ alog("existing msg: (%p), new msg (0x%p)", tail, (void *) m);
tail->next = m;
m->next = NULL;
return MOD_ERR_OK;