[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r3307 - in GNUnet/src/util: config_impl string
From: |
grothoff |
Subject: |
[GNUnet-SVN] r3307 - in GNUnet/src/util: config_impl string |
Date: |
Thu, 24 Aug 2006 19:35:45 -0700 (PDT) |
Author: grothoff
Date: 2006-08-24 19:35:43 -0700 (Thu, 24 Aug 2006)
New Revision: 3307
Modified:
GNUnet/src/util/config_impl/impl.c
GNUnet/src/util/string/xmalloc.c
Log:
fixes
Modified: GNUnet/src/util/config_impl/impl.c
===================================================================
--- GNUnet/src/util/config_impl/impl.c 2006-08-25 02:33:39 UTC (rev 3306)
+++ GNUnet/src/util/config_impl/impl.c 2006-08-25 02:35:43 UTC (rev 3307)
@@ -738,8 +738,6 @@
}
l.listener = callback;
l.ctx = ctx;
- fprintf(stderr,
- "Appending to %u\n", cfg->data->lsize);
APPEND(cfg->data->listeners,
cfg->data->lsize,
l);
@@ -756,13 +754,11 @@
MUTEX_LOCK(cfg->data->lock);
for (i=cfg->data->lsize-1;i>=0;i--) {
- fprintf(stderr,
- "Accessing at to %u - base %p\n", i, cfg->data->listeners);
l = &cfg->data->listeners[i];
if ( (l->listener == callback) &&
(l->ctx == ctx) ) {
cfg->data->listeners[i]
- = cfg->data->listeners[cfg->data->lsize];
+ = cfg->data->listeners[cfg->data->lsize-1];
GROW(cfg->data->listeners,
cfg->data->lsize,
cfg->data->lsize-1);
Modified: GNUnet/src/util/string/xmalloc.c
===================================================================
--- GNUnet/src/util/string/xmalloc.c 2006-08-25 02:33:39 UTC (rev 3306)
+++ GNUnet/src/util/string/xmalloc.c 2006-08-25 02:35:43 UTC (rev 3307)
@@ -234,9 +234,6 @@
filename,
linenumber,
function);
- fprintf(stderr,
- "xm %u bytes at %p\n",
- size, tmp);
GE_ASSERT(NULL, tmp != NULL);
memset(tmp, 0, size); /* client code should not rely on this, though... */
if (*oldCount > newCount)
@@ -257,3 +254,4 @@
}
/* end of xmalloc.c */
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r3307 - in GNUnet/src/util: config_impl string,
grothoff <=