diff --git a/include/netdb.h b/include/netdb.h index 3503a9fff7..56b5fb35cd 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -188,8 +188,8 @@ struct hostent * host names, terminated by a null pointer. */ int h_addrtype; /* Address type. */ int h_length; /* The length, in bytes, of the address. */ - FAR char **h_addr_list; /* A pointer to an array of pointers to network - * addresses (in network byte order) for the host, + FAR char **h_addr_list; /* A pointer to an array of pointers to network + * addresses (in network byte order) for the host, * terminated by a null pointer. */ }; @@ -205,7 +205,7 @@ struct netent uint32_t n_net; /* The network number, in host byte order. */ }; -struct protoent +struct protoent { FAR char *p_name; /* Official name of the protocol. */ FAR char **p_aliases; /* A pointer to an array of pointers to @@ -214,7 +214,7 @@ struct protoent int p_proto; /* The protocol number. */ }; -struct servent +struct servent { FAR char *s_name; /* Official name of the service. */ FAR char **s_aliases; /* A pointer to an array of pointers to @@ -226,7 +226,7 @@ struct servent * contacting the service. */ }; -struct addrinfo +struct addrinfo { int ai_flags; /* Input flags. */ int ai_family; /* Address family of socket. */ diff --git a/include/nuttx/binfmt/ieee695.h b/include/nuttx/binfmt/ieee695.h index 31a037289f..62d788c282 100644 --- a/include/nuttx/binfmt/ieee695.h +++ b/include/nuttx/binfmt/ieee695.h @@ -155,7 +155,7 @@ #define IEEE695_OMFEXT_PROTECTED 0x04 /* Protected memory library */ #define IEEE695_OMFEXT_LNKDIR 0x05 /* Microsoft C++ linker directives record */ #define IEEE695_OMFEXT_BIGENDIAN 0x06 /* Big-endian */ -#define IEEE695_OMFEXT_PRECOMP 0x07 +#define IEEE695_OMFEXT_PRECOMP 0x07 /* 0x08-0xff Reserved */ /* Link pass separator. This record conveys information to the linker about the diff --git a/include/nuttx/fs/hostfs.h b/include/nuttx/fs/hostfs.h index e530d10bb6..fb20775003 100644 --- a/include/nuttx/fs/hostfs.h +++ b/include/nuttx/fs/hostfs.h @@ -65,7 +65,7 @@ /* These must exactly match the definitions from include/sys/stat.h: */ -#define NUTTX_S_IFIFO 0010000 +#define NUTTX_S_IFIFO 0010000 #define NUTTX_S_IFCHR 0020000 #define NUTTX_S_IFDIR 0040000 #define NUTTX_S_IFBLK 0060000 diff --git a/include/nuttx/input/mxt.h b/include/nuttx/input/mxt.h index 22ee792769..0923b57a53 100644 --- a/include/nuttx/input/mxt.h +++ b/include/nuttx/input/mxt.h @@ -166,7 +166,7 @@ struct mxt_lower_s #ifdef __cplusplus #define EXTERN extern "C" -extern "C" +extern "C" { #else #define EXTERN extern diff --git a/include/nuttx/input/x11_keysymdef.h b/include/nuttx/input/x11_keysymdef.h index ac696eb897..4e9193a2a8 100644 --- a/include/nuttx/input/x11_keysymdef.h +++ b/include/nuttx/input/x11_keysymdef.h @@ -76,7 +76,7 @@ * Unicode number plus 0x01000000. The keysym values in the range * 0x01000100 to 0x0110ffff are reserved to represent Unicode * characters in the range U+0100 to U+10FFFF. - * + * * While most newer Unicode-based X11 clients do already accept * Unicode-mapped keysyms in the range 0x01000100 to 0x0110ffff, it * will remain necessary for clients -- in the interest of @@ -1905,7 +1905,7 @@ #endif /* XK_CAUCASUS */ /* Vietnamese */ - + #ifdef XK_VIETNAMESE # define XK_Abelowdot 0x1001ea0 /* U+1EA0 LATIN CAPITAL LETTER A WITH DOT BELOW */ # define XK_abelowdot 0x1001ea1 /* U+1EA1 LATIN SMALL LETTER A WITH DOT BELOW */ diff --git a/include/nuttx/lcd/st7565.h b/include/nuttx/lcd/st7565.h index a103f51cd7..c30fe2d473 100644 --- a/include/nuttx/lcd/st7565.h +++ b/include/nuttx/lcd/st7565.h @@ -142,7 +142,7 @@ extern "C" * ****************************************************************************/ -FAR struct lcd_dev_s *st7565_initialize(FAR struct st7565_lcd_s *lcd, +FAR struct lcd_dev_s *st7565_initialize(FAR struct st7565_lcd_s *lcd, unsigned int devno); #ifdef __cplusplus diff --git a/include/nuttx/mm/mm.h b/include/nuttx/mm/mm.h index 485e73fbeb..40e777907d 100644 --- a/include/nuttx/mm/mm.h +++ b/include/nuttx/mm/mm.h @@ -137,7 +137,7 @@ /* Four byte offsets; Pointers may be 4 or 8 bytes * sizeof(struct mm_freenode_s) is 16 or 24 bytes. */ - + # if UINTPTR_MAX <= UINT32_MAX # define MM_MIN_SHIFT 4 /* 16 bytes */ # elif UINTPTR_MAX <= UINT64_MAX diff --git a/include/nuttx/mtd/smart.h b/include/nuttx/mtd/smart.h index 25d42b311a..ac8d11d33f 100644 --- a/include/nuttx/mtd/smart.h +++ b/include/nuttx/mtd/smart.h @@ -91,7 +91,7 @@ struct mtd_smart_procfs_data_s size_t neraseblocks; /* Number of erase blocks */ #endif #ifdef CONFIG_MTD_SMART_ALLOC_DEBUG - FAR const struct smart_alloc_s *allocs; /* Array of allocations */ + FAR const struct smart_alloc_s *allocs; /* Array of allocations */ uint16_t alloccount; /* Number of items in the array */ #endif #ifdef CONFIG_MTD_SMART_WEAR_LEVEL diff --git a/include/nuttx/net/rfc6775.h b/include/nuttx/net/rfc6775.h index 04604283d1..cdfee0d6ee 100644 --- a/include/nuttx/net/rfc6775.h +++ b/include/nuttx/net/rfc6775.h @@ -80,7 +80,7 @@ #define RTR_SOLICITATION_INTERVAL 10 /* Seconds */ #define MAX_RTR_SOLICITATIONS 3 /* Transmissions */ -#define MAX_RTR_SOLICITATION_INTERVAL 60 /* Seconds */ +#define MAX_RTR_SOLICITATION_INTERVAL 60 /* Seconds */ /**************************************************************************** * Public Types diff --git a/include/nuttx/spi/slave.h b/include/nuttx/spi/slave.h index ba11c26394..a979d22c42 100644 --- a/include/nuttx/spi/slave.h +++ b/include/nuttx/spi/slave.h @@ -447,7 +447,7 @@ struct spi_sdev_s; /* Forward reference */ struct spi_sctrlrops_s { - CODE void (*bind)(FAR struct spi_sctrlr_s *sctrlr, + CODE void (*bind)(FAR struct spi_sctrlr_s *sctrlr, FAR struct spi_sdev_s *sdev, enum spi_smode_e mode, int nbits); CODE void (*unbind)(FAR struct spi_sctrlr_s *sctrlr); diff --git a/include/nuttx/syslog/syslog_console.h b/include/nuttx/syslog/syslog_console.h index 18283d9f39..6fbf137cb9 100644 --- a/include/nuttx/syslog/syslog_console.h +++ b/include/nuttx/syslog/syslog_console.h @@ -83,7 +83,7 @@ extern "C" * Name: syslog_console_init * * Description: - * Create the console logging device and register it at the '/dev/console' + * Create the console logging device and register it at the '/dev/console' * path. * ****************************************************************************/ diff --git a/include/nuttx/tree.h b/include/nuttx/tree.h index b8da3d0a59..5941092809 100644 --- a/include/nuttx/tree.h +++ b/include/nuttx/tree.h @@ -100,7 +100,7 @@ (head)->sph_root = tmp; \ } \ while (0) - + #define SPLAY_ROTATE_LEFT(head, tmp, field) \ do \ { \ diff --git a/include/nuttx/usb/hub.h b/include/nuttx/usb/hub.h index 420837cbae..de2d5101dd 100644 --- a/include/nuttx/usb/hub.h +++ b/include/nuttx/usb/hub.h @@ -148,7 +148,7 @@ /* Hub max ports */ -#define USBHUB_MAX_PORTS (7) +#define USBHUB_MAX_PORTS (7) /************************************************************************************ * Public Types @@ -192,7 +192,7 @@ struct usb_portstatus_s struct usb_hubtt_s { /* Hub class that is the transaction translator for device */ - + FAR struct usbhost_class_s *class; /* Transaction translator think time */ diff --git a/include/nuttx/video/vnc.h b/include/nuttx/video/vnc.h index df39d5b7fd..a0bb39e294 100644 --- a/include/nuttx/video/vnc.h +++ b/include/nuttx/video/vnc.h @@ -198,7 +198,7 @@ void vnc_mouseout(FAR void *arg, nxgl_coord_t x, nxgl_coord_t y, vnc_fbinitialize((d), NULL, vnc_mouseout, (FAR void *)(h)) #else - + #define vnc_default_fbinitialize(d,h) \ vnc_fbinitialize((d), NULL, NULL, NULL) diff --git a/include/nuttx/wireless/ieee80211/ieee80211.h b/include/nuttx/wireless/ieee80211/ieee80211.h index 62ea4491d3..1962351158 100644 --- a/include/nuttx/wireless/ieee80211/ieee80211.h +++ b/include/nuttx/wireless/ieee80211/ieee80211.h @@ -350,7 +350,7 @@ /* Organizationally Unique Identifiers. * See http://standards.ieee.org/regauth/oui/oui.txt for a list. */ - + #define ATHEROS_OUI ((const uint8_t[]){ 0x00, 0x03, 0x7f }) #define BROADCOM_OUI ((const uint8_t[]){ 0x00, 0x90, 0x4c }) #define IEEE80211_OUI ((const uint8_t[]){ 0x00, 0x0f, 0xac }) diff --git a/include/nuttx/wireless/wireless.h b/include/nuttx/wireless/wireless.h index 144e346fca..8bc0f5dcdf 100644 --- a/include/nuttx/wireless/wireless.h +++ b/include/nuttx/wireless/wireless.h @@ -384,7 +384,7 @@ struct iw_param /* Large data reference. For all data larger than 16 octets, we need to use a * pointer to memory allocated in user space. */ - + struct iw_point { FAR void *pointer; /* Pointer to the data (in user space) */ @@ -436,14 +436,14 @@ union iwreq_data struct iw_param frag; /* Fragmentation threshold */ uint32_t mode; /* Operation mode */ struct iw_param retry; /* Retry limits & lifetime */ - + struct iw_point encoding; /* Encoding stuff : tokens */ struct iw_param power; /* PM duration/timeout */ struct iw_quality qual; /* Quality part of statistics */ - + struct sockaddr ap_addr; /* Access point address */ struct sockaddr addr; /* Destination address (hw/mac) */ - + struct iw_param param; /* Other small parameters */ struct iw_point data; /* Other large parameters */ }; diff --git a/include/nuttx/zoneinfo.h b/include/nuttx/zoneinfo.h index 67f4214e0b..82bf9994d6 100644 --- a/include/nuttx/zoneinfo.h +++ b/include/nuttx/zoneinfo.h @@ -61,7 +61,7 @@ extern "C" #endif /* If the TZ database is built as a ROMFS file system, then these variables - * provide (1) the address of the array in FLASH/ROM that contains the + * provide (1) the address of the array in FLASH/ROM that contains the * ROMFS file system image, and (2) the size of the ROMFS file system image * in bytes. This is sufficient information to permit external logic to * mount the ROMF file system. diff --git a/include/sys/mman.h b/include/sys/mman.h index 22c883b87f..4f95dea867 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -127,7 +127,7 @@ * POSIX_TYPED_MEM_MAP_ALLOCATABLE * Map on mmap(), without affecting allocatability. */ - + #define POSIX_TYPED_MEM_ALLOCATE (0) #define POSIX_TYPED_MEM_ALLOCATE_CONTIG (1) #define POSIX_TYPED_MEM_MAP_ALLOCATABLE (2) diff --git a/include/sys/un.h b/include/sys/un.h index cad86f628b..a8b53bfdcb 100644 --- a/include/sys/un.h +++ b/include/sys/un.h @@ -41,7 +41,7 @@ ****************************************************************************/ /* The sys/un.> header defines the type sa_family_t as described in - * sys/socket.h. + * sys/socket.h. */ #include diff --git a/include/syslog.h b/include/syslog.h index 4c1112cf76..07374084a0 100644 --- a/include/syslog.h +++ b/include/syslog.h @@ -53,17 +53,17 @@ /* The option argument to openlog() is an OR of any of these: * * LOG_CONS - Write directly to system console if there is an error - * while sending to system logger. + * while sending to system logger. * LOG_NDELAY - Open the connection immediately (normally, the connection - * is opened when the first message is logged). + * is opened when the first message is logged). * LOG_NOWAIT - Don't wait for child processes that may have been created * while logging the message. * LOG_ODELAY - The converse of LOG_NDELAY; opening of the connection is * delayed until syslog() is called. (This is the default, - * and need not be specified.) + * and need not be specified.) * LOG_PERROR - (Not in POSIX.1-2001 or POSIX.1-2008.) Print to stderr * as well (Linux). - * LOG_PID - Include PID with each message. + * LOG_PID - Include PID with each message. */ /* Note: openlog() is not currently supported */ @@ -72,20 +72,20 @@ * the message. This lets the configuration file specify that messages from * different facilities will be handled differently. * - * LOG_AUTH - Security/authorization messages - * LOG_AUTHPRIV - Security/authorization messages (private) - * LOG_CRON - Clock daemon (cron and at) - * LOG_DAEMON - System daemons without separate facility value - * LOG_FTP - Ftp daemon + * LOG_AUTH - Security/authorization messages + * LOG_AUTHPRIV - Security/authorization messages (private) + * LOG_CRON - Clock daemon (cron and at) + * LOG_DAEMON - System daemons without separate facility value + * LOG_FTP - Ftp daemon * LOG_KERN - Lernel messages (these can't be generated from user - * processes) - * LOG_LOCAL0 through LOG_LOCAL7 - Reserved for local use - * LOG_LPR - Line printer subsystem - * LOG_MAIL - Mail subsystem - * LOG_NEWS - USENET news subsystem - * LOG_SYSLOG - Messages generated internally by syslogd(8) - * LOG_USER - Generic user-level messages (default) - * LOG_UUCP - UUCP subsystem + * processes) + * LOG_LOCAL0 through LOG_LOCAL7 - Reserved for local use + * LOG_LPR - Line printer subsystem + * LOG_MAIL - Mail subsystem + * LOG_NEWS - USENET news subsystem + * LOG_SYSLOG - Messages generated internally by syslogd(8) + * LOG_USER - Generic user-level messages (default) + * LOG_UUCP - UUCP subsystem */ #define LOG_AUTH 0 diff --git a/include/wchar.h b/include/wchar.h index 66d24ae9d7..0a891598d3 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -53,7 +53,7 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ -/* defines the following macro names: +/* defines the following macro names: * * WCHAR_MAX * The maximum value representable by an object of type wchar_t. @@ -66,7 +66,7 @@ * functions to indicate end-of-file. * * NULL - * As described in . + * As described in . * * Reference: Opengroup.org */