Skip to content

Commit 17a0081

Browse files
committed
correct line length to be shorter then 80 characters
1 parent a83cf85 commit 17a0081

5 files changed

Lines changed: 17 additions & 9 deletions

File tree

wolfcrypt/benchmark/benchmark.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15000,7 +15000,11 @@ void bench_sphincsKeySign(byte level, byte optim)
1500015000
#elif defined(__WATCOMC__)
1500115001

1500215002
#include <time.h>
15003-
WC_INLINE double current_time(int reset) { (void)reset; return ((double)clock())/CLOCKS_PER_SEC; }
15003+
WC_INLINE double current_time(int reset)
15004+
{
15005+
(void)reset;
15006+
return ((double)clock())/CLOCKS_PER_SEC;
15007+
}
1500415008
#else
1500515009

1500615010
#include <time.h>

wolfssl/test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ static WC_INLINE void tcp_socket(SOCKET_T* sockfd, int udp, int sctp)
14961496
err_sys_with_errno("setsockopt TCP_NODELAY failed\n");
14971497
}
14981498
#endif
1499-
#endif /* !defined(USE_WINDOWS_API) && !defined(__WATCOMC__) && !defined(__OS2__) */
1499+
#endif /* !defined(USE_WINDOWS_API) && !defined(__WATCOMC__) && ... */
15001500
}
15011501

15021502
#if defined(WOLFSSL_WOLFSENTRY_HOOKS) && defined(WOLFSENTRY_H)

wolfssl/wolfcrypt/ecc.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ typedef byte ecc_oid_t;
287287
#endif
288288

289289

290-
#if !defined(WOLFSSL_ECC_CURVE_STATIC) && defined(USE_WINDOWS_API) && !defined(__WATCOMC__)
290+
#if !defined(WOLFSSL_ECC_CURVE_STATIC) && defined(USE_WINDOWS_API) && \
291+
!defined(__WATCOMC__)
291292
/* MSC does something different with the pointers to the arrays than GCC,
292293
* and it causes the FIPS checksum to fail. In the case of windows builds,
293294
* store everything as arrays instead of pointers to strings. */

wolfssl/wolfcrypt/wc_port.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
#if defined(USE_WINDOWS_API)
128128
#define _WINSOCKAPI_ /* block inclusion of winsock.h header file */
129129
#include <windows.h>
130-
#undef _WINSOCKAPI_ /* undefine it for MINGW winsock2.h header file */
130+
#undef _WINSOCKAPI_ /* undefine it for MINGW winsock2.h header */
131131
#ifndef WOLFSSL_USER_IO
132132
#include <winsock2.h>
133133
#include <ws2tcpip.h> /* required for InetPton */
@@ -139,7 +139,7 @@
139139
#if defined(USE_WINDOWS_API)
140140
#define _WINSOCKAPI_ /* block inclusion of winsock.h header file */
141141
#include <windows.h>
142-
#undef _WINSOCKAPI_ /* undefine it for MINGW winsock2.h header file */
142+
#undef _WINSOCKAPI_ /* undefine it for MINGW winsock2.h header */
143143
#include <process.h>
144144
#ifndef WOLFSSL_USER_IO
145145
#include <winsock2.h>
@@ -172,7 +172,7 @@
172172
#if !defined(WOLFSSL_SGX) && !defined(WOLFSSL_NOT_WINDOWS_API)
173173
#define _WINSOCKAPI_ /* block inclusion of winsock.h header file. */
174174
#include <windows.h>
175-
#undef _WINSOCKAPI_ /* undefine it for MINGW winsock2.h header file */
175+
#undef _WINSOCKAPI_ /* undefine it for MINGW winsock2.h header */
176176
#ifndef WOLFSSL_USER_IO
177177
#include <winsock2.h>
178178
#include <ws2tcpip.h> /* required for InetPton */

wolfssl/wolfio.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -895,10 +895,12 @@ WOLFSSL_API void wolfSSL_SetIOWriteFlags(WOLFSSL* ssl, int flags);
895895

896896
#ifndef XINET_NTOP
897897
#if defined(__WATCOMC__)
898-
#if defined(__OS2__) || defined(__NT__) && (NTDDI_VERSION >= NTDDI_VISTA)
898+
#if defined(__OS2__) || defined(__NT__) && \
899+
(NTDDI_VERSION >= NTDDI_VISTA)
899900
#define XINET_NTOP(a,b,c,d) inet_ntop((a),(b),(c),(d))
900901
#else
901-
#define XINET_NTOP(a,b,c,d) strncpy((c),inet_ntoa(*(unsigned *)(b)),(d))
902+
#define XINET_NTOP(a,b,c,d) \
903+
strncpy((c),inet_ntoa(*(unsigned *)(b)),(d))
902904
#endif
903905
#elif defined(USE_WINDOWS_API) /* Windows-friendly definition */
904906
#define XINET_NTOP(a,b,c,d) InetNtop((a),(b),(c),(d))
@@ -908,7 +910,8 @@ WOLFSSL_API void wolfSSL_SetIOWriteFlags(WOLFSSL* ssl, int flags);
908910
#endif
909911
#ifndef XINET_PTON
910912
#if defined(__WATCOMC__)
911-
#if defined(__OS2__) || defined(__NT__) && (NTDDI_VERSION >= NTDDI_VISTA)
913+
#if defined(__OS2__) || defined(__NT__) && \
914+
(NTDDI_VERSION >= NTDDI_VISTA)
912915
#define XINET_PTON(a,b,c) inet_pton((a),(b),(c))
913916
#else
914917
#define XINET_PTON(a,b,c) *(unsigned *)(c) = inet_addr((b))

0 commit comments

Comments
 (0)