aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/reliable.c
diff options
context:
space:
mode:
authorGert Doering2018-11-30 14:56:41 +0100
committerDavid Sommerseth2018-12-12 13:43:17 +0100
commitf57431cdc88f22fa4d7962946f0d3187fe058539 (patch)
tree6e606561672de812959563f555c591479d406e81 /src/openvpn/reliable.c
parenta7b5993d9d6319c77d80212db61c74060cd7e7f1 (diff)
downloadopenvpn-f57431cdc88f22fa4d7962946f0d3187fe058539.zip
openvpn-f57431cdc88f22fa4d7962946f0d3187fe058539.tar.gz
uncrustify openvpn/ sources
There are an amazing number of brackets that were either totally missing, or have snuck up on the "for(...){" line. Further, uncrustify wants "|" in multi-line logical expressions now at the beginning of the new line, and "PRIi64" now gets surrounding spaces. Added "sp_after_semi_for_empty=Add" to uncrustify.conf to leave a few for() statements alone that look better the way they are. Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: David Sommerseth <davids@openvpn.net> Message-Id: <20181130135641.11533-3-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17970.html Signed-off-by: David Sommerseth <davids@openvpn.net>
Diffstat (limited to 'src/openvpn/reliable.c')
-rw-r--r--src/openvpn/reliable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvpn/reliable.c b/src/openvpn/reliable.c
index a7f4ed9..eae1e0c 100644
--- a/src/openvpn/reliable.c
+++ b/src/openvpn/reliable.c
@@ -762,14 +762,14 @@ reliable_debug_print(const struct reliable *rel, char *desc)
printf("********* struct reliable %s\n", desc);
printf(" initial_timeout=%d\n", (int)rel->initial_timeout);
printf(" packet_id=" packet_id_format "\n", rel->packet_id);
- printf(" now=%"PRIi64"\n", (int64_t)now);
+ printf(" now=%" PRIi64 "\n", (int64_t)now);
for (i = 0; i < rel->size; ++i)
{
const struct reliable_entry *e = &rel->array[i];
if (e->active)
{
printf(" %d: packet_id=" packet_id_format " len=%d", i, e->packet_id, e->buf.len);
- printf(" next_try=%"PRIi64, (int64_t)e->next_try);
+ printf(" next_try=%" PRIi64, (int64_t)e->next_try);
printf("\n");
}
}