style fixes
authorChristian Grothoff <christian@grothoff.org>
Fri, 2 Nov 2018 22:47:09 +0000 (23:47 +0100)
committerChristian Grothoff <christian@grothoff.org>
Fri, 2 Nov 2018 22:47:09 +0000 (23:47 +0100)
src/namestore/gnunet-service-namestore.c
src/namestore/namestore_api_monitor.c
src/namestore/plugin_namestore_sqlite.c

index 1b9e01e180597f139b298ca96b1e190460d7e4be..cdd52cc42db250eb26e0b479bb064421965d9c67 100644 (file)
@@ -624,7 +624,6 @@ send_lookup_response (struct NamestoreClient *nc,
   char *rd_ser;
 
   nick = get_nick_record (zone_key);
-
   GNUNET_assert (-1 !=
                  GNUNET_GNSRECORD_records_get_size (rd_count,
                                                     rd));
@@ -925,7 +924,7 @@ continue_store_activity (struct StoreActivity *sa)
                          sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) )
        {
          sa->zm_pos = zm->next; /* not interesting to this monitor */
-         continue; // -- fails tests, but why not here?
+         continue;
        }
       if (zm->limit == zm->iteration_cnt)
       {
@@ -1771,7 +1770,7 @@ run_zone_iteration_round (struct ZoneIteration *zi,
                 "Returned %llu results, more results available\n",
                 (unsigned long long) limit);
     return; /* more results later after we get the
-#GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT message */
+               #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT message */
   }
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Completed iteration after %llu/%llu results\n",
index 457da0b90b7c763e8f450862646d5679928fa792..b26389718296ea0e2aec86de70b6bbe7a8a6cc86 100644 (file)
@@ -11,7 +11,7 @@
      WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      Affero General Public License for more details.
-    
+
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -296,7 +296,6 @@ reconnect (struct GNUNET_NAMESTORE_ZoneMonitor *zm)
 }
 
 
-
 /**
  * Begin monitoring a zone for changes.  If @a iterate_first is set,
  * we Will first call the @a monitor function on all existing records
index 2ffc12f92c9ca0154631c7e4b9e8f69e48f03610..23af3960d55489a76741e09bb7e2e3c043202f84 100644 (file)
@@ -501,16 +501,10 @@ get_records_and_call_iterator (struct Plugin *plugin,
         GNUNET_SQ_result_spec_end
       };
 
-      if (NULL == zone_key)
-      {
-        ret = GNUNET_SQ_extract_result (stmt,
-                                        rsx);
-      }
-      else
-      {
-        ret = GNUNET_SQ_extract_result (stmt,
-                                        rs);
-      }
+      ret = GNUNET_SQ_extract_result (stmt,
+                                      (NULL == zone_key)
+                                      ? rsx
+                                      : rs);
       if ( (GNUNET_OK != ret) ||
            (record_count > 64 * 1024) )
       {