[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r22102 - gnunet/src/namestore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r22102 - gnunet/src/namestore |
Date: |
Tue, 19 Jun 2012 11:25:11 +0200 |
Author: grothoff
Date: 2012-06-19 11:25:11 +0200 (Tue, 19 Jun 2012)
New Revision: 22102
Modified:
gnunet/src/namestore/namestore_api.c
Log:
-minor cleanup
Modified: gnunet/src/namestore/namestore_api.c
===================================================================
--- gnunet/src/namestore/namestore_api.c 2012-06-19 09:13:28 UTC (rev
22101)
+++ gnunet/src/namestore/namestore_api.c 2012-06-19 09:25:11 UTC (rev
22102)
@@ -265,30 +265,30 @@
rd_tmp = &name[name_len];
/* deserialize records */
- struct GNUNET_NAMESTORE_RecordData rd[rd_count];
- if (GNUNET_OK != GNUNET_NAMESTORE_records_deserialize(rd_len, rd_tmp,
rd_count, rd))
{
- GNUNET_break_op (0);
- return;
- }
+ struct GNUNET_NAMESTORE_RecordData rd[rd_count];
+ if (GNUNET_OK != GNUNET_NAMESTORE_records_deserialize(rd_len, rd_tmp,
rd_count, rd))
+ {
+ GNUNET_break_op (0);
+ return;
+ }
- /* reset values if values not contained */
- if (contains_sig == GNUNET_NO)
- signature = NULL;
- else
- signature = &msg->signature;
- if (name_len == 0)
- name = NULL;
-
- if (name != NULL)
+ /* reset values if values not contained */
+ if (GNUNET_NO == contains_sig)
+ signature = NULL;
+ else
+ signature = &msg->signature;
+ if (0 == name_len)
+ name = NULL;
+
+ if (NULL != name)
public_key_tmp = &msg->public_key;
- else
+ else
public_key_tmp = NULL;
-
- if (qe->proc != NULL)
- {
- qe->proc (qe->proc_cls, public_key_tmp, expire, name, rd_count, (rd_count
> 0) ? rd : NULL, signature);
+
+ if (NULL != qe->proc)
+ qe->proc (qe->proc_cls, public_key_tmp, expire, name, rd_count,
(rd_count > 0) ? rd : NULL, signature);
}
GNUNET_free (qe);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r22102 - gnunet/src/namestore,
gnunet <=