[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r30249 - gnunet/src/namestore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r30249 - gnunet/src/namestore |
Date: |
Thu, 17 Oct 2013 11:30:02 +0200 |
Author: grothoff
Date: 2013-10-17 11:30:02 +0200 (Thu, 17 Oct 2013)
New Revision: 30249
Modified:
gnunet/src/namestore/test_namestore_api_remove_not_existing_record.c
Log:
-indentation, code cleanup
Modified: gnunet/src/namestore/test_namestore_api_remove_not_existing_record.c
===================================================================
--- gnunet/src/namestore/test_namestore_api_remove_not_existing_record.c
2013-10-17 09:22:20 UTC (rev 30248)
+++ gnunet/src/namestore/test_namestore_api_remove_not_existing_record.c
2013-10-17 09:30:02 UTC (rev 30249)
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- (C) 2009 Christian Grothoff (and other contributing authors)
+ (C) 2013 Christian Grothoff (and other contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -84,7 +84,8 @@
static void
-end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
+end (void *cls,
+ const struct GNUNET_SCHEDULER_TaskContext *tc)
{
cleanup ();
res = 0;
@@ -95,40 +96,36 @@
put_cont (void *cls, int32_t success, const char *emsg)
{
GNUNET_assert (NULL != cls);
-
nsqe = NULL;
-
if (GNUNET_SYSERR == success)
{
- GNUNET_break (0);
+ GNUNET_break (0);
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- _("Namestore could not remove record: `%s'\n"), emsg);
- if (endbadly_task != GNUNET_SCHEDULER_NO_TASK)
- GNUNET_SCHEDULER_cancel (endbadly_task);
- endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL);
+ "Namestore could not remove record: `%s'\n",
+ emsg);
+ GNUNET_SCHEDULER_shutdown ();
return;
}
else if (GNUNET_OK == success)
{
- GNUNET_break (0);
+ GNUNET_break (0);
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- _("Namestore did remove not exisiting record: `%s'\n"), emsg);
- if (endbadly_task != GNUNET_SCHEDULER_NO_TASK)
- GNUNET_SCHEDULER_cancel (endbadly_task);
- endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL);
+ "Namestore did remove not exisiting record: `%s'\n",
+ emsg);
+ GNUNET_SCHEDULER_shutdown ();
return;
}
else
{
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Name was not removed\n");
- res = 0;
+ res = 0;
if (endbadly_task != GNUNET_SCHEDULER_NO_TASK)
{
GNUNET_SCHEDULER_cancel (endbadly_task);
endbadly_task = GNUNET_SCHEDULER_NO_TASK;
}
- GNUNET_SCHEDULER_add_now (&end, NULL);
+ GNUNET_SCHEDULER_add_now (&end, NULL);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r30249 - gnunet/src/namestore,
gnunet <=