Mateusz Starzyk e36f5b1c11 Fix parantheses on return and sizeof statements.
Used script:
```
import re
import sys

for arg in sys.argv[1:]:
    print(arg)
    with open(arg, 'r') as file:
        content = file.read()
        content = re.sub(r"return\s?\((?!.*\).*\()\s*\n?(.*)\n?\);", r"return \1;", \
            content, flags = re.M)
        content = re.sub(r"sizeof ([^\(][a-zA-Z0-9_\[\]]*)", r"sizeof(\1)",\
            content, flags = re.M)
    with open(arg, 'w') as file:
        file.write(content)

```
Executed with:
` find . -regextype posix-egrep -regex ".*\.([hc]|fmt|function)" | xargs -L1 python script.py`

Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
2021-08-10 16:54:21 +02:00
..
CMakeLists.txt Fix cmake build of programs 2021-06-17 09:38:38 +02:00
dh_client.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
dh_genprime.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
dh_prime.txt - Changed saved value to RCF 3526 2048 MODP group 2012-10-03 19:50:54 +00:00
dh_server.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
ecdh_curve25519.c Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
ecdsa.c Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
gen_key.c Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
key_app_writer.c Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
key_app.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
mpi_demo.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
pk_decrypt.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
pk_encrypt.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
pk_sign.c Merge pull request #4694 from gilles-peskine-arm/out_size-3.0 2021-06-29 09:43:17 +02:00
pk_verify.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
rsa_decrypt.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
rsa_encrypt.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
rsa_genkey.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
rsa_priv.txt Normalize line endings 2020-05-27 21:55:08 +02:00
rsa_pub.txt Normalize line endings 2020-05-27 21:55:08 +02:00
rsa_sign_pss.c Merge pull request #4694 from gilles-peskine-arm/out_size-3.0 2021-06-29 09:43:17 +02:00
rsa_sign.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
rsa_verify_pss.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
rsa_verify.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00