diff --git a/cores/esp32/WMath.cpp b/cores/esp32/WMath.cpp index eafff903..d351b194 100644 --- a/cores/esp32/WMath.cpp +++ b/cores/esp32/WMath.cpp @@ -44,7 +44,7 @@ long random(long howbig) uint32_t t = -howbig; if (t >= howbig) { t -= howbig; - if (t >= howbig) + if (t >= howbig) t %= howbig; } while (l < t) { diff --git a/cores/esp32/wiring_shift.c b/cores/esp32/wiring_shift.c index c6c279aa..41cf8a0f 100644 --- a/cores/esp32/wiring_shift.c +++ b/cores/esp32/wiring_shift.c @@ -16,7 +16,7 @@ Boston, MA 02111-1307 USA $Id: wiring.c 248 2007-02-03 15:36:30Z mellis $ */ - + #include "esp32-hal.h" #include "wiring_private.h" diff --git a/libraries/ArduinoOTA/examples/OTAWebUpdater/OTAWebUpdater.ino b/libraries/ArduinoOTA/examples/OTAWebUpdater/OTAWebUpdater.ino index f343abc7..4c4adc7f 100644 --- a/libraries/ArduinoOTA/examples/OTAWebUpdater/OTAWebUpdater.ino +++ b/libraries/ArduinoOTA/examples/OTAWebUpdater/OTAWebUpdater.ino @@ -14,7 +14,7 @@ WebServer server(80); * Login page */ -const char* loginIndex = +const char* loginIndex = "
" "" "" @@ -55,12 +55,12 @@ const char* loginIndex = "}" "}" ""; - + /* * Server Index Page */ - -const char* serverIndex = + +const char* serverIndex = "" "" "" @@ -89,7 +89,7 @@ const char* serverIndex = "return xhr;" "}," "success:function(d, s) {" - "console.log('success!')" + "console.log('success!')" "}," "error: function (a, b, c) {" "}" diff --git a/tools/sdk/include/esp32/xtensa/cacheasm.h b/tools/sdk/include/esp32/xtensa/cacheasm.h index 225e01b3..d338f40f 100644 --- a/tools/sdk/include/esp32/xtensa/cacheasm.h +++ b/tools/sdk/include/esp32/xtensa/cacheasm.h @@ -148,7 +148,7 @@ * if all sets affected by cainst, * or 1 if only one set (or not all sets) of the cache * is affected by cainst (eg. DIWB or DIWBI [not yet ISA defined]). - * aa, ab unique address registers (temporaries). + * aa, ab unique address registers (temporaries). * awb set to other than a0 if wb type of instruction * loopokay 1 allows use of zero-overhead loops, 0 does not * immrange range (max value) of cainst's immediate offset parameter, in bytes @@ -904,7 +904,7 @@ movi \aa, XCHAL_DCACHE_WAYS .Ldcgw: #else - // All ways are always enabled + // All ways are always enabled movi \aa, XCHAL_DCACHE_WAYS #endif #else diff --git a/tools/sdk/include/esp32/xtensa/coreasm.h b/tools/sdk/include/esp32/xtensa/coreasm.h index e41e04d1..6c006cbb 100644 --- a/tools/sdk/include/esp32/xtensa/coreasm.h +++ b/tools/sdk/include/esp32/xtensa/coreasm.h @@ -558,7 +558,7 @@ * macro implements version of beqi for arbitrary 32-bit immediate value * * beqi32 ax, ay, imm32, label - * + * * Compares value in register ax with imm32 value and jumps to label if * equal. Clobbers register ay if needed * @@ -573,7 +573,7 @@ .ifeq (\imm) // 0 ? beqz \ax, \label .else - // We could also handle immediates 10,12,16,32,64,128,256 + // We could also handle immediates 10,12,16,32,64,128,256 // but it would be a long macro... movi \ay, \imm beq \ax, \ay, \label @@ -639,9 +639,9 @@ /*---------------------------------------------------------------------- * addx2 - * + * * implements addx2 on machines that do not have it configured - * + * */ #if !XCHAL_HAVE_ADDX @@ -666,7 +666,7 @@ /*---------------------------------------------------------------------- * addx4 - * + * * implements addx4 on machines that do not have it configured * */ @@ -696,9 +696,9 @@ /*---------------------------------------------------------------------- * addx8 - * + * * implements addx8 on machines that do not have it configured - * + * */ #if !XCHAL_HAVE_ADDX @@ -731,7 +731,7 @@ /*---------------------------------------------------------------------- * rfe_rfue - * + * * Maps to RFUE on XEA1, and RFE on XEA2. No mapping on XEAX. */ @@ -744,11 +744,11 @@ rfe .endm #endif - + /*---------------------------------------------------------------------- * abi_entry - * + * * Generate proper function entry sequence for the current ABI * (windowed or call0). Takes care of allocating stack space (up to 1kB) * and saving the return PC, if necessary. The corresponding abi_return @@ -882,7 +882,7 @@ /*---------------------------------------------------------------------- * abi_return - * + * * Generate proper function exit sequence for the current ABI * (windowed or call0). Takes care of freeing stack space and * restoring the return PC, if necessary. diff --git a/tools/sdk/include/esp32/xtensa/xt_perf_consts.h b/tools/sdk/include/esp32/xtensa/xt_perf_consts.h index f063a31f..092adaa0 100644 --- a/tools/sdk/include/esp32/xtensa/xt_perf_consts.h +++ b/tools/sdk/include/esp32/xtensa/xt_perf_consts.h @@ -34,7 +34,7 @@ #define XTPERF_CNT_DCACHE_MISSES 0x8006 /* DCache misses penalty in cycles */ #define XTPERF_CNT_CYCLES 0 /* Count cycles */ -#define XTPERF_CNT_OVERFLOW 1 /* Overflow of counter n-1 (assuming this is counter n) */ +#define XTPERF_CNT_OVERFLOW 1 /* Overflow of counter n-1 (assuming this is counter n) */ #define XTPERF_CNT_INSN 2 /* Successfully completed instructions */ #define XTPERF_CNT_D_STALL 3 /* Data-related GlobalStall cycles */ #define XTPERF_CNT_I_STALL 4 /* Instruction-related and other GlobalStall cycles */ @@ -67,18 +67,18 @@ #define XTPERF_MASK_COMMITTED_INSN 0x0001 /* XTPERF_CNT_BRANCH_PENALTY selector mask */ - + #define XTPERF_MASK_BRANCH_PENALTY 0x0001 /* XTPERF_CNT_PIPELINE_INTERLOCKS selector mask */ #define XTPERF_MASK_PIPELINE_INTERLOCKS 0x0001 -/* XTPERF_CNT_ICACHE_MISSES selector mask */ +/* XTPERF_CNT_ICACHE_MISSES selector mask */ #define XTPERF_MASK_ICACHE_MISSES 0x0001 -/* XTPERF_CNT_DCACHE_MISSES selector mask */ +/* XTPERF_CNT_DCACHE_MISSES selector mask */ #define XTPERF_MASK_DCACHE_MISSES 0x0001 diff --git a/tools/sdk/include/esp32/xtensa/xtensa-libdb-macros.h b/tools/sdk/include/esp32/xtensa/xtensa-libdb-macros.h index fbbe5096..872a8dd5 100644 --- a/tools/sdk/include/esp32/xtensa/xtensa-libdb-macros.h +++ b/tools/sdk/include/esp32/xtensa/xtensa-libdb-macros.h @@ -156,6 +156,6 @@ extern "C" { #ifdef __cplusplus } #endif - + #endif /* __H_LIBDB_MACROS */ diff --git a/tools/sdk/include/freemodbus/mb.h b/tools/sdk/include/freemodbus/mb.h index 8d6be7b4..68b1a3b7 100644 --- a/tools/sdk/include/freemodbus/mb.h +++ b/tools/sdk/include/freemodbus/mb.h @@ -1,4 +1,4 @@ -/* +/* * FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU. * Copyright (c) 2006 Christian Walter * All rights reserved. @@ -71,7 +71,7 @@ PR_BEGIN_EXTERN_C /*! \ingroup modbus * \brief Use the default Modbus TCP port (502) */ -#define MB_TCP_PORT_USE_DEFAULT 0 +#define MB_TCP_PORT_USE_DEFAULT 0 /* ----------------------- Type definitions ---------------------------------*/ @@ -97,7 +97,7 @@ PR_BEGIN_EXTERN_C * registers should be updated and reading means that the modbus protocol * stack needs to know the current register values. * - * \see eMBRegHoldingCB( ), eMBRegCoilsCB( ), eMBRegDiscreteCB( ) and + * \see eMBRegHoldingCB( ), eMBRegCoilsCB( ), eMBRegDiscreteCB( ) and * eMBRegInputCB( ). */ typedef enum @@ -142,7 +142,7 @@ typedef enum * * \return If no error occurs the function returns eMBErrorCode::MB_ENOERR. * The protocol is then in the disabled state and ready for activation - * by calling eMBEnable( ). Otherwise one of the following error codes + * by calling eMBEnable( ). Otherwise one of the following error codes * is returned: * - eMBErrorCode::MB_EINVAL If the slave address was not valid. Valid * slave addresses are in the range 1 - 247. @@ -171,10 +171,10 @@ eMBErrorCode eMBTCPInit( USHORT usTCPPort ); * \brief Release resources used by the protocol stack. * * This function disables the Modbus protocol stack and release all - * hardware resources. It must only be called when the protocol stack - * is disabled. + * hardware resources. It must only be called when the protocol stack + * is disabled. * - * \note Note all ports implement this function. A port which wants to + * \note Note all ports implement this function. A port which wants to * get an callback must define the macro MB_PORT_HAS_CLOSE to 1. * * \return If the resources where released it return eMBErrorCode::MB_ENOERR. @@ -189,8 +189,8 @@ eMBErrorCode eMBClose( void ); * This function enables processing of Modbus frames. Enabling the protocol * stack is only possible if it is in the disabled state. * - * \return If the protocol stack is now in the state enabled it returns - * eMBErrorCode::MB_ENOERR. If it was not in the disabled state it + * \return If the protocol stack is now in the state enabled it returns + * eMBErrorCode::MB_ENOERR. If it was not in the disabled state it * return eMBErrorCode::MB_EILLSTATE. */ eMBErrorCode eMBEnable( void ); @@ -200,7 +200,7 @@ eMBErrorCode eMBEnable( void ); * * This function disables processing of Modbus frames. * - * \return If the protocol stack has been disabled it returns + * \return If the protocol stack has been disabled it returns * eMBErrorCode::MB_ENOERR. If it was not in the enabled state it returns * eMBErrorCode::MB_EILLSTATE. */ @@ -212,10 +212,10 @@ eMBErrorCode eMBDisable( void ); * This function must be called periodically. The timer interval required * is given by the application dependent Modbus slave timeout. Internally the * function calls xMBPortEventGet() and waits for an event from the receiver or - * transmitter state machines. + * transmitter state machines. * * \return If the protocol stack is not in the enabled state the function - * returns eMBErrorCode::MB_EILLSTATE. Otherwise it returns + * returns eMBErrorCode::MB_EILLSTATE. Otherwise it returns * eMBErrorCode::MB_ENOERR. */ eMBErrorCode eMBPoll( void ); @@ -249,7 +249,7 @@ eMBErrorCode eMBSetSlaveID( UCHAR ucSlaveID, BOOL xIsRunning, * The callback handler supplied is responsible for interpreting the Modbus PDU and * the creation of an appropriate response. In case of an error it should return * one of the possible Modbus exceptions which results in a Modbus exception frame - * sent by the protocol stack. + * sent by the protocol stack. * * \param ucFunctionCode The Modbus function code for which this handler should * be registers. Valid function codes are in the range 1 to 127. @@ -262,7 +262,7 @@ eMBErrorCode eMBSetSlaveID( UCHAR ucSlaveID, BOOL xIsRunning, * case the values in mbconfig.h should be adjusted. If the argument was not * valid it returns eMBErrorCode::MB_EINVAL. */ -eMBErrorCode eMBRegisterCB( UCHAR ucFunctionCode, +eMBErrorCode eMBRegisterCB( UCHAR ucFunctionCode, pxMBFunctionHandler pxHandler ); /* ----------------------- Callback -----------------------------------------*/ @@ -300,7 +300,7 @@ eMBErrorCode eMBRegisterCB( UCHAR ucFunctionCode, * - eMBErrorCode::MB_ENOERR If no error occurred. In this case a normal * Modbus response is sent. * - eMBErrorCode::MB_ENOREG If the application can not supply values - * for registers within this range. In this case a + * for registers within this range. In this case a * ILLEGAL DATA ADDRESS exception frame is sent as a response. * - eMBErrorCode::MB_ETIMEDOUT If the requested register block is * currently not available and the application dependent response @@ -324,18 +324,18 @@ eMBErrorCode eMBRegInputCB( UCHAR * pucRegBuffer, USHORT usAddress, * this buffer. * \param usAddress The starting address of the register. * \param usNRegs Number of registers to read or write. - * \param eMode If eMBRegisterMode::MB_REG_WRITE the application register + * \param eMode If eMBRegisterMode::MB_REG_WRITE the application register * values should be updated from the values in the buffer. For example - * this would be the case when the Modbus master has issued an + * this would be the case when the Modbus master has issued an * WRITE SINGLE REGISTER command. - * If the value eMBRegisterMode::MB_REG_READ the application should copy + * If the value eMBRegisterMode::MB_REG_READ the application should copy * the current values into the buffer \c pucRegBuffer. * * \return The function must return one of the following error codes: * - eMBErrorCode::MB_ENOERR If no error occurred. In this case a normal * Modbus response is sent. * - eMBErrorCode::MB_ENOREG If the application can not supply values - * for registers within this range. In this case a + * for registers within this range. In this case a * ILLEGAL DATA ADDRESS exception frame is sent as a response. * - eMBErrorCode::MB_ETIMEDOUT If the requested register block is * currently not available and the application dependent response @@ -370,7 +370,7 @@ eMBErrorCode eMBRegHoldingCB( UCHAR * pucRegBuffer, USHORT usAddress, * - eMBErrorCode::MB_ENOERR If no error occurred. In this case a normal * Modbus response is sent. * - eMBErrorCode::MB_ENOREG If the application does not map an coils - * within the requested address range. In this case a + * within the requested address range. In this case a * ILLEGAL DATA ADDRESS is sent as a response. * - eMBErrorCode::MB_ETIMEDOUT If the requested register block is * currently not available and the application dependent response @@ -399,7 +399,7 @@ eMBErrorCode eMBRegCoilsCB( UCHAR * pucRegBuffer, USHORT usAddress, * - eMBErrorCode::MB_ENOERR If no error occurred. In this case a normal * Modbus response is sent. * - eMBErrorCode::MB_ENOREG If no such discrete inputs exists. - * In this case a ILLEGAL DATA ADDRESS exception frame is sent + * In this case a ILLEGAL DATA ADDRESS exception frame is sent * as a response. * - eMBErrorCode::MB_ETIMEDOUT If the requested register block is * currently not available and the application dependent response diff --git a/tools/sdk/include/freemodbus/mbconfig.h b/tools/sdk/include/freemodbus/mbconfig.h index 54194de2..68d3d33a 100644 --- a/tools/sdk/include/freemodbus/mbconfig.h +++ b/tools/sdk/include/freemodbus/mbconfig.h @@ -1,4 +1,4 @@ -/* +/* * FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU. * Copyright (c) 2006 Christian Walter * All rights reserved. diff --git a/tools/sdk/include/freemodbus/mbframe.h b/tools/sdk/include/freemodbus/mbframe.h index 99d59c61..dfe44bd6 100644 --- a/tools/sdk/include/freemodbus/mbframe.h +++ b/tools/sdk/include/freemodbus/mbframe.h @@ -1,4 +1,4 @@ -/* +/* * FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU. * Copyright (c) 2006 Christian Walter * All rights reserved. diff --git a/tools/sdk/include/freemodbus/mbfunc.h b/tools/sdk/include/freemodbus/mbfunc.h index aea14f75..48d7b390 100644 --- a/tools/sdk/include/freemodbus/mbfunc.h +++ b/tools/sdk/include/freemodbus/mbfunc.h @@ -1,4 +1,4 @@ -/* +/* * FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU. * Copyright (c) 2006 Christian Walter * All rights reserved. diff --git a/tools/sdk/include/freemodbus/mbport.h b/tools/sdk/include/freemodbus/mbport.h index 8d334d0e..9a72fdfb 100644 --- a/tools/sdk/include/freemodbus/mbport.h +++ b/tools/sdk/include/freemodbus/mbport.h @@ -1,4 +1,4 @@ -/* +/* * FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU. * Copyright (c) 2006 Christian Walter * All rights reserved. diff --git a/tools/sdk/include/freemodbus/mbproto.h b/tools/sdk/include/freemodbus/mbproto.h index 786aaf40..a2d487af 100644 --- a/tools/sdk/include/freemodbus/mbproto.h +++ b/tools/sdk/include/freemodbus/mbproto.h @@ -1,4 +1,4 @@ -/* +/* * FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU. * Copyright (c) 2006 Christian Walter * All rights reserved. diff --git a/tools/sdk/include/freemodbus/mbutils.h b/tools/sdk/include/freemodbus/mbutils.h index 61495751..1d96ddcc 100644 --- a/tools/sdk/include/freemodbus/mbutils.h +++ b/tools/sdk/include/freemodbus/mbutils.h @@ -1,4 +1,4 @@ -/* +/* * FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU. * Copyright (c) 2006 Christian Walter * All rights reserved. diff --git a/tools/sdk/include/lwip/netif/ppp/ipcp.h b/tools/sdk/include/lwip/netif/ppp/ipcp.h index 45f46b31..af276112 100644 --- a/tools/sdk/include/lwip/netif/ppp/ipcp.h +++ b/tools/sdk/include/lwip/netif/ppp/ipcp.h @@ -76,7 +76,7 @@ #define IPCP_VJ_COMP 0x002d /* current value for VJ compression option*/ #define IPCP_VJ_COMP_OLD 0x0037 /* "old" (i.e, broken) value for VJ */ - /* compression option*/ + /* compression option*/ #endif /* VJ_SUPPORT */ typedef struct ipcp_options { diff --git a/tools/sdk/include/lwip/netif/ppp/ipv6cp.h b/tools/sdk/include/lwip/netif/ppp/ipv6cp.h index 07d1ae31..2bfcc0ec 100644 --- a/tools/sdk/include/lwip/netif/ppp/ipv6cp.h +++ b/tools/sdk/include/lwip/netif/ppp/ipv6cp.h @@ -73,7 +73,7 @@ between BULL S.A. and INRIA). This software is available with usual "research" terms - with the aim of retain credits of the software. + with the aim of retain credits of the software. Permission to use, copy, modify and distribute this software for any purpose and without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies, diff --git a/tools/sdk/include/newlib/complex.h b/tools/sdk/include/newlib/complex.h index 969b20e5..7702a952 100644 --- a/tools/sdk/include/newlib/complex.h +++ b/tools/sdk/include/newlib/complex.h @@ -95,7 +95,7 @@ double complex csqrt(double complex); float complex csqrtf(float complex); /* 7.3.9 Manipulation functions */ -/* 7.3.9.1 The carg functions */ +/* 7.3.9.1 The carg functions */ double carg(double complex); float cargf(float complex); diff --git a/tools/sdk/include/newlib/glob.h b/tools/sdk/include/newlib/glob.h index 7a300e69..837e0892 100644 --- a/tools/sdk/include/newlib/glob.h +++ b/tools/sdk/include/newlib/glob.h @@ -82,7 +82,7 @@ typedef struct { #define GLOB_ABEND (-2) /* Unignored error. */ __BEGIN_DECLS -int glob(const char *__restrict, int, int (*)(const char *, int), +int glob(const char *__restrict, int, int (*)(const char *, int), glob_t *__restrict); void globfree(glob_t *); __END_DECLS diff --git a/tools/sdk/include/newlib/langinfo.h b/tools/sdk/include/newlib/langinfo.h index 9040adef..d68eb9a4 100644 --- a/tools/sdk/include/newlib/langinfo.h +++ b/tools/sdk/include/newlib/langinfo.h @@ -179,7 +179,7 @@ enum __nl_item #ifdef __HAVE_LOCALE_INFO_EXTENDED__ /* NOTE: - + Always maintain the order and position of existing entries! Always append new entry to the list, prior to the definition of _NL_LOCALE_EXTENDED_LAST_ENTRY. */ diff --git a/tools/sdk/include/newlib/machine/setjmp.h b/tools/sdk/include/newlib/machine/setjmp.h index 9f9d9e49..82edd858 100644 --- a/tools/sdk/include/newlib/machine/setjmp.h +++ b/tools/sdk/include/newlib/machine/setjmp.h @@ -240,7 +240,7 @@ _BEGIN_STD_C #endif #if (defined(__CR16__) || defined(__CR16C__) ||defined(__CR16CP__)) -/* r6, r7, r8, r9, r10, r11, r12 (r12L, r12H), +/* r6, r7, r8, r9, r10, r11, r12 (r12L, r12H), * r13 (r13L, r13H), ra(raL, raH), sp(spL, spH) */ #define _JBLEN 14 #define _JBTYPE unsigned short @@ -269,7 +269,7 @@ _BEGIN_STD_C #endif #ifdef __SPU__ -#define _JBLEN 50 +#define _JBLEN 50 #define _JBTYPE __vector signed int #endif @@ -287,13 +287,13 @@ _BEGIN_STD_C (in case a subsequent alloca in proc moves $sp), and the return address within proc. Everything else is saved on the stack in the normal save areas. The jmp_buf structure is: - + struct jmp_buf { int regs[12]; int save[4]; void *return_address; } - + See the setjmp code for details. */ #define _JBLEN 17 /* 12 + 4 + 1 */ @@ -349,7 +349,7 @@ _BEGIN_STD_C * 2) Function-call versions. * * The built-in versions are used most of the time. When used, gcc replaces - * calls to setjmp()/longjmp() with inline assembly code. The built-in + * calls to setjmp()/longjmp() with inline assembly code. The built-in * versions save/restore a variable number of registers. * _JBLEN is set to 40 to be ultra-safe with the built-in versions. diff --git a/tools/sdk/include/newlib/pthread.h b/tools/sdk/include/newlib/pthread.h index db1f9c1c..0c5df940 100644 --- a/tools/sdk/include/newlib/pthread.h +++ b/tools/sdk/include/newlib/pthread.h @@ -44,7 +44,7 @@ struct _pthread_cleanup_context { /* Register Fork Handlers */ int _EXFUN(pthread_atfork,(void (*prepare)(void), void (*parent)(void), void (*child)(void))); - + /* Mutex Initialization Attributes, P1003.1c/Draft 10, p. 81 */ int _EXFUN(pthread_mutexattr_init, (pthread_mutexattr_t *__attr)); @@ -72,7 +72,7 @@ int _EXFUN(pthread_mutex_init, int _EXFUN(pthread_mutex_destroy, (pthread_mutex_t *__mutex)); /* This is used to statically initialize a pthread_mutex_t. Example: - + pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; */ @@ -93,41 +93,41 @@ int _EXFUN(pthread_mutex_timedlock, #endif /* _POSIX_TIMEOUTS */ /* Condition Variable Initialization Attributes, P1003.1c/Draft 10, p. 96 */ - + int _EXFUN(pthread_condattr_init, (pthread_condattr_t *__attr)); int _EXFUN(pthread_condattr_destroy, (pthread_condattr_t *__attr)); int _EXFUN(pthread_condattr_getpshared, (_CONST pthread_condattr_t *__attr, int *__pshared)); int _EXFUN(pthread_condattr_setpshared, (pthread_condattr_t *__attr, int __pshared)); - + /* Initializing and Destroying a Condition Variable, P1003.1c/Draft 10, p. 87 */ - + int _EXFUN(pthread_cond_init, (pthread_cond_t *__cond, _CONST pthread_condattr_t *__attr)); int _EXFUN(pthread_cond_destroy, (pthread_cond_t *__mutex)); - + /* This is used to statically initialize a pthread_cond_t. Example: - + pthread_cond_t cond = PTHREAD_COND_INITIALIZER; */ - + #define PTHREAD_COND_INITIALIZER ((pthread_cond_t) 0xFFFFFFFF) - + /* Broadcasting and Signaling a Condition, P1003.1c/Draft 10, p. 101 */ - + int _EXFUN(pthread_cond_signal, (pthread_cond_t *__cond)); int _EXFUN(pthread_cond_broadcast, (pthread_cond_t *__cond)); - + /* Waiting on a Condition, P1003.1c/Draft 10, p. 105 */ - + int _EXFUN(pthread_cond_wait, (pthread_cond_t *__cond, pthread_mutex_t *__mutex)); - + int _EXFUN(pthread_cond_timedwait, (pthread_cond_t *__cond, pthread_mutex_t *__mutex, _CONST struct timespec *__abstime)); - + #if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) /* Thread Creation Scheduling Attributes, P1003.1c/Draft 10, p. 120 */ @@ -166,7 +166,7 @@ int _EXFUN(pthread_setschedparam, #if defined(_POSIX_THREAD_PRIO_INHERIT) || defined(_POSIX_THREAD_PRIO_PROTECT) /* Mutex Initialization Scheduling Attributes, P1003.1c/Draft 10, p. 128 */ - + int _EXFUN(pthread_mutexattr_setprotocol, (pthread_mutexattr_t *__attr, int __protocol)); int _EXFUN(pthread_mutexattr_getprotocol, @@ -214,14 +214,14 @@ int _EXFUN(pthread_attr_getguardsize, int _EXFUN(pthread_attr_setguardsize, (pthread_attr_t *__attr, size_t __guardsize)); -/* POSIX thread APIs beyond the POSIX standard but provided +/* POSIX thread APIs beyond the POSIX standard but provided * in GNU/Linux. They may be provided by other OSes for * compatibility. */ #if defined(__GNU_VISIBLE) -#if defined(__rtems__) +#if defined(__rtems__) int _EXFUN(pthread_attr_setaffinity_np, - (pthread_attr_t *__attr, size_t __cpusetsize, + (pthread_attr_t *__attr, size_t __cpusetsize, const cpu_set_t *__cpuset)); int _EXFUN(pthread_attr_getaffinity_np, (const pthread_attr_t *__attr, size_t __cpusetsize, @@ -266,13 +266,13 @@ int _EXFUN(pthread_equal, (pthread_t __t1, pthread_t __t2)); /* Dynamic Package Initialization */ /* This is used to statically initialize a pthread_once_t. Example: - + pthread_once_t once = PTHREAD_ONCE_INIT; - + NOTE: This is named inconsistently -- it should be INITIALIZER. */ - + #define PTHREAD_ONCE_INIT { 1, 0 } /* is initialized and not run */ - + int _EXFUN(pthread_once, (pthread_once_t *__once_control, void (*__init_routine)(void))); @@ -350,12 +350,12 @@ void _EXFUN(_pthread_cleanup_pop_restore, #endif /* defined(_GNU_SOURCE) */ #if defined(_POSIX_THREAD_CPUTIME) - + /* Accessing a Thread CPU-time Clock, P1003.4b/D8, p. 58 */ - + int _EXFUN(pthread_getcpuclockid, (pthread_t __pthread_id, clockid_t *__clock_id)); - + #endif /* defined(_POSIX_THREAD_CPUTIME) */ @@ -394,7 +394,7 @@ int _EXFUN(pthread_spin_unlock, (pthread_spinlock_t *__spinlock)); #if defined(_POSIX_READER_WRITER_LOCKS) /* This is used to statically initialize a pthread_rwlock_t. Example: - + pthread_mutex_t mutex = PTHREAD_RWLOCK_INITIALIZER; */ diff --git a/tools/sdk/include/newlib/sys/features.h b/tools/sdk/include/newlib/sys/features.h index 87f3314f..ab387fce 100644 --- a/tools/sdk/include/newlib/sys/features.h +++ b/tools/sdk/include/newlib/sys/features.h @@ -25,7 +25,7 @@ extern "C" { #endif -/* Macros to determine that newlib is being used. Put in this header to +/* Macros to determine that newlib is being used. Put in this header to * be similar to where glibc stores its version of these macros. */ #define __NEWLIB__ 2 @@ -140,7 +140,7 @@ extern "C" { #define _POSIX_REGEXP 1 #define _POSIX_SAVED_IDS 1 #define _POSIX_SEMAPHORES 200112L -#define _POSIX_SHARED_MEMORY_OBJECTS 200112L +#define _POSIX_SHARED_MEMORY_OBJECTS 200112L #define _POSIX_SHELL 1 /* #define _POSIX_SPAWN -1 */ #define _POSIX_SPIN_LOCKS 200112L @@ -223,7 +223,7 @@ extern "C" { * Allow for _XOPEN_SOURCE to be empty (from the earliest form of it, before it * was required to have specific values). */ -#if !defined(_POSIX_C_SOURCE) && defined(_XOPEN_SOURCE) +#if !defined(_POSIX_C_SOURCE) && defined(_XOPEN_SOURCE) #if (_XOPEN_SOURCE - 0) == 700 /* POSIX.1-2008 */ #define _POSIX_C_SOURCE 200809L #elif (_XOPEN_SOURCE - 0) == 600 /* POSIX.1-2001 or 2004 */ diff --git a/tools/sdk/include/wpa_supplicant/endian.h b/tools/sdk/include/wpa_supplicant/endian.h index 1e2453f1..7d6303a5 100644 --- a/tools/sdk/include/wpa_supplicant/endian.h +++ b/tools/sdk/include/wpa_supplicant/endian.h @@ -58,19 +58,19 @@ typedef __uint8_t uint8_t; typedef __uint16_t uint16_t; #define _UINT16_T_DECLARED #endif - + #define _UINT32_T_DECLARED #ifndef _UINT32_T_DECLARED typedef __uint32_t uint32_t; #define _UINT32_T_DECLARED #endif - + #define _UINT64_T_DECLARED #ifndef _UINT64_T_DECLARED typedef __uint64_t uint64_t; #define _UINT64_T_DECLARED #endif - + /* * General byte order swapping functions. */ diff --git a/tools/sdk/include/wpa_supplicant/wpa/ieee80211_crypto.h b/tools/sdk/include/wpa_supplicant/wpa/ieee80211_crypto.h index be0fb9aa..db753ae2 100644 --- a/tools/sdk/include/wpa_supplicant/wpa/ieee80211_crypto.h +++ b/tools/sdk/include/wpa_supplicant/wpa/ieee80211_crypto.h @@ -199,12 +199,12 @@ ieee80211_crypto_enmic(struct ieee80211vap *vap, } #endif //0000 -/* +/* * Setup crypto support for a device/shared instance. */ void ieee80211_crypto_attach(struct ieee80211com *ic); -/* +/* * Reset key state to an unused state. The crypto * key allocation mechanism insures other state (e.g. * key data) is properly setup before a key is used.