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 Remove PKCS#11 library wrapper. 2021-04-21 11:05:00 +02:00
dtls_client.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
dtls_server.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
mini_client.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
ssl_client1.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
ssl_client2.c Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
ssl_context_info.c Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
ssl_fork_server.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
ssl_mail_client.c Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
ssl_pthread_server.c Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
ssl_server2.c Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
ssl_server.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
ssl_test_common_source.c Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
ssl_test_lib.c Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
ssl_test_lib.h Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00