diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-11-24 19:13:00 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-11-24 19:13:00 +0100 |
commit | d17a17ea785f91c18b5694eab3372c4e4564d95e (patch) | |
tree | a7ee983fb1c0fa5a9210938024357cd9498ee344 /src/peerstore | |
parent | 5f38569fce2e77afeed58cbd3429c67bf8ab9109 (diff) | |
download | gnunet-d17a17ea785f91c18b5694eab3372c4e4564d95e.tar.gz gnunet-d17a17ea785f91c18b5694eab3372c4e4564d95e.zip |
fix pointer indentation
Diffstat (limited to 'src/peerstore')
-rw-r--r-- | src/peerstore/plugin_peerstore_flat.c | 6 | ||||
-rw-r--r-- | src/peerstore/test_plugin_peerstore.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/peerstore/plugin_peerstore_flat.c b/src/peerstore/plugin_peerstore_flat.c index 6983ff2d8..06e6c0b77 100644 --- a/src/peerstore/plugin_peerstore_flat.c +++ b/src/peerstore/plugin_peerstore_flat.c | |||
@@ -443,7 +443,7 @@ database_setup (struct Plugin *plugin) | |||
443 | o = NULL; | 443 | o = NULL; |
444 | s = GNUNET_STRINGS_base64_decode (peer, | 444 | s = GNUNET_STRINGS_base64_decode (peer, |
445 | strlen (peer), | 445 | strlen (peer), |
446 | (void**) &o); | 446 | (void **) &o); |
447 | if (sizeof(struct GNUNET_PeerIdentity) == s) | 447 | if (sizeof(struct GNUNET_PeerIdentity) == s) |
448 | GNUNET_memcpy (&entry->peer, | 448 | GNUNET_memcpy (&entry->peer, |
449 | o, | 449 | o, |
@@ -454,7 +454,7 @@ database_setup (struct Plugin *plugin) | |||
454 | } | 454 | } |
455 | entry->value_size = GNUNET_STRINGS_base64_decode (value, | 455 | entry->value_size = GNUNET_STRINGS_base64_decode (value, |
456 | strlen (value), | 456 | strlen (value), |
457 | (void**) &entry->value); | 457 | (void **) &entry->value); |
458 | if (GNUNET_SYSERR == | 458 | if (GNUNET_SYSERR == |
459 | GNUNET_STRINGS_fancy_time_to_absolute (expiry, | 459 | GNUNET_STRINGS_fancy_time_to_absolute (expiry, |
460 | &entry->expiry)) | 460 | &entry->expiry)) |
@@ -496,7 +496,7 @@ store_and_free_entries (void *cls, | |||
496 | entry->value_size, | 496 | entry->value_size, |
497 | &val); | 497 | &val); |
498 | expiry = GNUNET_STRINGS_absolute_time_to_string (entry->expiry); | 498 | expiry = GNUNET_STRINGS_absolute_time_to_string (entry->expiry); |
499 | GNUNET_STRINGS_base64_encode ((char*) &entry->peer, | 499 | GNUNET_STRINGS_base64_encode ((char *) &entry->peer, |
500 | sizeof(struct GNUNET_PeerIdentity), | 500 | sizeof(struct GNUNET_PeerIdentity), |
501 | &peer); | 501 | &peer); |
502 | GNUNET_asprintf (&line, | 502 | GNUNET_asprintf (&line, |
diff --git a/src/peerstore/test_plugin_peerstore.c b/src/peerstore/test_plugin_peerstore.c index 03e71ed63..a4221ea63 100644 --- a/src/peerstore/test_plugin_peerstore.c +++ b/src/peerstore/test_plugin_peerstore.c | |||
@@ -81,7 +81,7 @@ load_plugin (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
81 | "libgnunet_plugin_peerstore_%s", | 81 | "libgnunet_plugin_peerstore_%s", |
82 | plugin_name); | 82 | plugin_name); |
83 | if (NULL == (ret = GNUNET_PLUGIN_load (libname, | 83 | if (NULL == (ret = GNUNET_PLUGIN_load (libname, |
84 | (void*) cfg))) | 84 | (void *) cfg))) |
85 | { | 85 | { |
86 | fprintf (stderr, | 86 | fprintf (stderr, |
87 | "Failed to load plugin `%s'!\n", | 87 | "Failed to load plugin `%s'!\n", |
@@ -131,7 +131,7 @@ get_record (struct GNUNET_PEERSTORE_PluginFunctions *psp, | |||
131 | identity, | 131 | identity, |
132 | "key", | 132 | "key", |
133 | &test_record, | 133 | &test_record, |
134 | (void*) identity)); | 134 | (void *) identity)); |
135 | } | 135 | } |
136 | 136 | ||
137 | 137 | ||