diff --git a/lib/pclsync/pasyncnet.c b/lib/pclsync/pasyncnet.c index 8d42c71..99d1a02 100644 --- a/lib/pclsync/pasyncnet.c +++ b/lib/pclsync/pasyncnet.c @@ -35,8 +35,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "papi.h" #include "pasyncnet.h" #include "pcompat.h" diff --git a/lib/pclsync/pcache.c b/lib/pclsync/pcache.c index 09b8301..eccb41b 100644 --- a/lib/pclsync/pcache.c +++ b/lib/pclsync/pcache.c @@ -35,8 +35,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "pcache.h" #include "pcompat.h" #include "plibs.h" diff --git a/lib/pclsync/pcloudcrypto.c b/lib/pclsync/pcloudcrypto.c index 702e069..81e9fa5 100644 --- a/lib/pclsync/pcloudcrypto.c +++ b/lib/pclsync/pcloudcrypto.c @@ -38,8 +38,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "papi.h" #include "pcache.h" #include "pcloudcrypto.h" diff --git a/lib/pclsync/pcompat.c b/lib/pclsync/pcompat.c index c13c645..94f8bd3 100644 --- a/lib/pclsync/pcompat.c +++ b/lib/pclsync/pcompat.c @@ -34,8 +34,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "pcompat.h" #include "plibs.h" #include "psettings.h" diff --git a/lib/pclsync/pcrypto.c b/lib/pclsync/pcrypto.c index 6e4654a..9edb9ed 100644 --- a/lib/pclsync/pcrypto.c +++ b/lib/pclsync/pcrypto.c @@ -36,8 +36,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "pcompat.h" #include "pcompiler.h" diff --git a/lib/pclsync/pdiff.c b/lib/pclsync/pdiff.c index 34999b2..884ea1e 100644 --- a/lib/pclsync/pdiff.c +++ b/lib/pclsync/pdiff.c @@ -39,8 +39,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "paccountevents.h" #include "papi.h" #include "pbusinessaccount.h" diff --git a/lib/pclsync/pdownload.c b/lib/pclsync/pdownload.c index 636060a..b9afc4f 100644 --- a/lib/pclsync/pdownload.c +++ b/lib/pclsync/pdownload.c @@ -37,8 +37,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "papi.h" #include "pasyncnet.h" #include "pcallbacks.h" diff --git a/lib/pclsync/pfolder.c b/lib/pclsync/pfolder.c index b00fa68..888f969 100644 --- a/lib/pclsync/pfolder.c +++ b/lib/pclsync/pfolder.c @@ -37,8 +37,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "papi.h" #include "pcloudcrypto.h" #include "pdiff.h" diff --git a/lib/pclsync/pfs.c b/lib/pclsync/pfs.c index 89d9be1..5ed6bdf 100644 --- a/lib/pclsync/pfs.c +++ b/lib/pclsync/pfs.c @@ -38,8 +38,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "pcloudcrypto.h" #include "pcompat.h" #include "pfolder.h" diff --git a/lib/pclsync/pfscrypto.c b/lib/pclsync/pfscrypto.c index 2cdae88..0818e7e 100644 --- a/lib/pclsync/pfscrypto.c +++ b/lib/pclsync/pfscrypto.c @@ -36,8 +36,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "pcloudcrypto.h" #include "pfscrypto.h" #include "plibs.h" diff --git a/lib/pclsync/pfsfolder.c b/lib/pclsync/pfsfolder.c index e104c37..0710788 100644 --- a/lib/pclsync/pfsfolder.c +++ b/lib/pclsync/pfsfolder.c @@ -36,8 +36,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "pcloudcrypto.h" #include "pfolder.h" #include "pfs.h" diff --git a/lib/pclsync/pfstasks.c b/lib/pclsync/pfstasks.c index d5237a4..6f827e5 100644 --- a/lib/pclsync/pfstasks.c +++ b/lib/pclsync/pfstasks.c @@ -36,8 +36,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "pcache.h" #include "pcloudcrypto.h" #include "pcompat.h" diff --git a/lib/pclsync/pfsupload.c b/lib/pclsync/pfsupload.c index b5ad440..ebc053f 100644 --- a/lib/pclsync/pfsupload.c +++ b/lib/pclsync/pfsupload.c @@ -36,8 +36,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "pcache.h" #include "pdiff.h" #include "pfileops.h" diff --git a/lib/pclsync/plocalscan.c b/lib/pclsync/plocalscan.c index 2fe96c0..430676c 100644 --- a/lib/pclsync/plocalscan.c +++ b/lib/pclsync/plocalscan.c @@ -37,8 +37,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "pcallbacks.h" #include "pfolder.h" #include "plibs.h" diff --git a/lib/pclsync/pmemlock.c b/lib/pclsync/pmemlock.c index a775550..3779c17 100644 --- a/lib/pclsync/pmemlock.c +++ b/lib/pclsync/pmemlock.c @@ -36,8 +36,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "pcloudcrypto.h" #include "pcompat.h" #include "pintervaltree.h" diff --git a/lib/pclsync/pnetlibs.c b/lib/pclsync/pnetlibs.c index 29e5e26..dc11912 100644 --- a/lib/pclsync/pnetlibs.c +++ b/lib/pclsync/pnetlibs.c @@ -37,8 +37,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "papi.h" #include "pcache.h" #include "plibs.h" @@ -1733,7 +1731,8 @@ err0: static int psync_sha1_cmp(const void *p1, const void *p2){ psync_block_checksum **b1=(psync_block_checksum **)p1; psync_block_checksum **b2=(psync_block_checksum **)p2; - return memcmp((*b1)->mbedtls_sha1, (*b2)->mbedtls_sha1, PSYNC_SHA1_DIGEST_LEN); + return memcmp((*b1)->mbedtls_sha1, (*b2)->mbedtls_sha1, +PSYNC_SHA1_DIGEST_LEN); } static psync_block_checksum @@ -1810,7 +1809,8 @@ psync_net_create_hash(const psync_file_checksums *checksums) { static void psync_net_hash_remove(psync_file_checksum_hash *restrict hash, psync_file_checksums *restrict checksums, - uint32_t adler, const unsigned char *mbedtls_sha1) { + uint32_t adler, + const unsigned char *mbedtls_sha1) { uint32_t idx, zeroidx, o, bp; o = adler % hash->elementcnt; while (1) { @@ -1890,10 +1890,9 @@ static int psync_net_hash_has_adler(const psync_file_checksum_hash *hash, } } -static uint32_t -psync_net_hash_has_adler_and_sha1(const psync_file_checksum_hash *hash, - const psync_file_checksums *checksums, - uint32_t adler, const unsigned char *mbedtls_sha1) { +static uint32_t psync_net_hash_has_adler_and_sha1( + const psync_file_checksum_hash *hash, const psync_file_checksums *checksums, + uint32_t adler, const unsigned char *mbedtls_sha1) { uint32_t idx, o; o = adler % hash->elementcnt; while (1) { diff --git a/lib/pclsync/pp2p.c b/lib/pclsync/pp2p.c index 4cbef87..738daed 100644 --- a/lib/pclsync/pp2p.c +++ b/lib/pclsync/pp2p.c @@ -37,8 +37,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "papi.h" #include "pcompat.h" #include "pcrypto.h" diff --git a/lib/pclsync/ppagecache.c b/lib/pclsync/ppagecache.c index 3484c7a..88dc772 100644 --- a/lib/pclsync/ppagecache.c +++ b/lib/pclsync/ppagecache.c @@ -36,8 +36,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "pcache.h" #include "pcrc32c.h" #include "pfscrypto.h" diff --git a/lib/pclsync/ppassword.c b/lib/pclsync/ppassword.c index 080afaa..e8f2941 100644 --- a/lib/pclsync/ppassword.c +++ b/lib/pclsync/ppassword.c @@ -35,8 +35,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "plibs.h" #include "ppassword.h" #include "ppassworddict.h" diff --git a/lib/pclsync/ppathstatus.c b/lib/pclsync/ppathstatus.c index ef086f3..a9ec005 100644 --- a/lib/pclsync/ppathstatus.c +++ b/lib/pclsync/ppathstatus.c @@ -36,8 +36,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "pcloudcrypto.h" #include "pfolder.h" #include "pfs.h" diff --git a/lib/pclsync/psettings.c b/lib/pclsync/psettings.c index 093e072..f65dceb 100644 --- a/lib/pclsync/psettings.c +++ b/lib/pclsync/psettings.c @@ -36,8 +36,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "pfs.h" #include "plibs.h" #include "plocalscan.h" diff --git a/lib/pclsync/psyncer.c b/lib/pclsync/psyncer.c index 86db07f..6c3f442 100644 --- a/lib/pclsync/psyncer.c +++ b/lib/pclsync/psyncer.c @@ -37,8 +37,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "pcallbacks.h" #include "pdownload.h" #include "pfolder.h" diff --git a/lib/pclsync/psynclib.c b/lib/pclsync/psynclib.c index a15a78e..ba3d43e 100644 --- a/lib/pclsync/psynclib.c +++ b/lib/pclsync/psynclib.c @@ -38,8 +38,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "papi.h" #include "pasyncnet.h" #include "pbusinessaccount.h" diff --git a/lib/pclsync/ptasks.c b/lib/pclsync/ptasks.c index e6f25a5..a0b5445 100644 --- a/lib/pclsync/ptasks.c +++ b/lib/pclsync/ptasks.c @@ -36,8 +36,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "pcallbacks.h" #include "pdownload.h" #include "plibs.h" diff --git a/lib/pclsync/pupload.c b/lib/pclsync/pupload.c index 73cdb6d..139744c 100644 --- a/lib/pclsync/pupload.c +++ b/lib/pclsync/pupload.c @@ -37,8 +37,6 @@ #include #include -#include "mbedtls/compat-1.3.h" - #include "papi.h" #include "pcallbacks.h" #include "pcompat.h"