[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -less output
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -less output |
Date: |
Mon, 21 Nov 2022 16:09:17 +0100 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 92439915b -less output
92439915b is described below
commit 92439915b13f5e38658fc154c20bb4d6bf2d69e3
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Tue Nov 22 00:09:10 2022 +0900
-less output
---
src/namestore/gnunet-namestore.c | 25 ++++++++-----------------
1 file changed, 8 insertions(+), 17 deletions(-)
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c
index 207394dd9..8b5cf4dfd 100644
--- a/src/namestore/gnunet-namestore.c
+++ b/src/namestore/gnunet-namestore.c
@@ -455,14 +455,7 @@ parse_recordline (const char *line)
record.flags |= GNUNET_GNSRECORD_RF_SHADOW;
if (NULL != strchr (tok, (unsigned char) 'C'))
record.flags |= GNUNET_GNSRECORD_RF_CRITICAL;
- tok = strtok_r (NULL, " ", &saveptr);
- if (NULL == tok)
- {
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- _ ("Empty record line argument is not allowed.\n"));
- GNUNET_free (cp);
- return GNUNET_SYSERR;
- }
+ tok += strlen (tok) + 1;
if (GNUNET_OK != GNUNET_GNSRECORD_string_to_value (record.record_type,
tok,
&raw_data,
@@ -1828,7 +1821,6 @@ process_command_stdin ()
return;
}
*tmp = '\0';
- printf ("Switching to new name `%s' in zone `%s'\n", next_name, tmp + 1);
have_next_zonekey = GNUNET_YES;
/* Run a command for the previous record set */
if (NULL != recordset)
@@ -1848,21 +1840,20 @@ process_command_stdin ()
fprintf (stderr, "Warning, encountered recordline without zone\n");
continue;
}
- printf ("Parsing `%s'\n", buf);
parse_recordline (buf);
}
if (GNUNET_NO == finished)
{
- if (GNUNET_NO == zonekey_set)
+ if (NULL != recordset)
{
+ if (GNUNET_YES == zonekey_set)
+ {
+ run_with_zone_pkey (cfg); /** one last time **/
+ finished = GNUNET_YES;
+ return;
+ }
fprintf (stderr, "Warning, encountered recordline without zone\n");
}
- else if (NULL != recordset)
- {
- run_with_zone_pkey (cfg); /** one last time **/
- finished = GNUNET_YES;
- return;
- }
}
ns_qe = GNUNET_NAMESTORE_transaction_commit (ns, &commit_cb, NULL);
return;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -less output,
gnunet <=