From a8823830d39bdbde8d4f4f34bfcb26dc4bf79741 Mon Sep 17 00:00:00 2001 From: iphydf Date: Mon, 12 Sep 2016 21:37:58 +0100 Subject: Add some astyle options to make it do more. It now enforces a bit more formatting. In particular, padding inside parentheses is removed. I would like it to remove padding after unary operators, but there seems to be no option for that. --- toxcore/ping.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toxcore/ping.c') diff --git a/toxcore/ping.c b/toxcore/ping.c index d2a01f5d..d15ccd47 100644 --- a/toxcore/ping.c +++ b/toxcore/ping.c @@ -125,7 +125,7 @@ static int send_ping_response(PING *ping, IP_Port ipp, const uint8_t *public_key rc = encrypt_data_symmetric(shared_encryption_key, pk + 1 + crypto_box_PUBLICKEYBYTES, ping_plain, sizeof(ping_plain), - pk + 1 + crypto_box_PUBLICKEYBYTES + crypto_box_NONCEBYTES ); + pk + 1 + crypto_box_PUBLICKEYBYTES + crypto_box_NONCEBYTES); if (rc != PING_PLAIN_SIZE + crypto_box_MACBYTES) { return 1; @@ -158,7 +158,7 @@ static int handle_ping_request(void *_dht, IP_Port source, const uint8_t *packet packet + 1 + crypto_box_PUBLICKEYBYTES, packet + 1 + crypto_box_PUBLICKEYBYTES + crypto_box_NONCEBYTES, PING_PLAIN_SIZE + crypto_box_MACBYTES, - ping_plain ); + ping_plain); if (rc != sizeof(ping_plain)) { return 1; -- cgit v1.2.3