X-Git-Url: https://jfr.im/git/irc/thales.git/blobdiff_plain/7d3d97a1aeb9bb6831420e4f586ff70b2d500866..1803825644c4a6252b7d48c822d1612da7104b17:/src/memory.c?ds=sidebyside diff --git a/src/memory.c b/src/memory.c index 195337a..83151f3 100644 --- a/src/memory.c +++ b/src/memory.c @@ -1,4 +1,4 @@ -/* Thales - IRC to Relational Database Gateway +/* GNU Thales - IRC to Relational Database Gateway * Copyright (C) 2002 Lucas Nussbaum * * This program is free software; you can redistribute it and/or modify @@ -36,7 +36,7 @@ void *smalloc(long size) if (!size) { - log("smalloc: Illegal attempt to allocate 0 bytes"); + mylog("smalloc: Illegal attempt to allocate 0 bytes"); size = 1; } buf = malloc(size); @@ -55,7 +55,7 @@ void *scalloc(long elsize, long els) if (!elsize || !els) { - log("scalloc: Illegal attempt to allocate 0 bytes"); + mylog("scalloc: Illegal attempt to allocate 0 bytes"); elsize = els = 1; } buf = calloc(elsize, els); @@ -74,7 +74,7 @@ void *srealloc(void *oldptr, long newsize) if (!newsize) { - log("srealloc: Illegal attempt to allocate 0 bytes"); + mylog("srealloc: Illegal attempt to allocate 0 bytes"); newsize = 1; } buf = realloc(oldptr, newsize);