Skip to content

Commit 8847389

Browse files
anchaojerpelea
authored andcommitted
style/FAR: remove FAR qualifier
N/A, remove FAR qualifier from non-pointer types Signed-off-by: chao an <[email protected]>
1 parent 6088f62 commit 8847389

File tree

16 files changed

+31
-31
lines changed

16 files changed

+31
-31
lines changed

include/locale.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,20 @@ struct lconv
7575
FAR char *mon_grouping;
7676
FAR char *positive_sign;
7777
FAR char *negative_sign;
78-
FAR char int_frac_digits;
79-
FAR char frac_digits;
80-
FAR char p_cs_precedes;
81-
FAR char p_sep_by_space;
82-
FAR char n_cs_precedes;
83-
FAR char n_sep_by_space;
84-
FAR char p_sign_posn;
85-
FAR char n_sign_posn;
86-
FAR char int_n_cs_precedes;
87-
FAR char int_n_sep_by_space;
88-
FAR char int_n_sign_posn;
89-
FAR char int_p_cs_precedes;
90-
FAR char int_p_sep_by_space;
91-
FAR char int_p_sign_posn;
78+
char int_frac_digits;
79+
char frac_digits;
80+
char p_cs_precedes;
81+
char p_sep_by_space;
82+
char n_cs_precedes;
83+
char n_sep_by_space;
84+
char p_sign_posn;
85+
char n_sign_posn;
86+
char int_n_cs_precedes;
87+
char int_n_sep_by_space;
88+
char int_n_sign_posn;
89+
char int_p_cs_precedes;
90+
char int_p_sep_by_space;
91+
char int_p_sign_posn;
9292
};
9393

9494
/* OpenGroup.org: The locale.h header shall define the locale_t type,

include/nuttx/mm/mm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,12 +436,12 @@ void mm_checkcorruption(FAR struct mm_heap_s *heap);
436436

437437
/* Functions contained in umm_checkcorruption.c *****************************/
438438

439-
FAR void umm_checkcorruption(void);
439+
void umm_checkcorruption(void);
440440

441441
/* Functions contained in kmm_checkcorruption.c *****************************/
442442

443443
#ifdef CONFIG_MM_KERNEL_HEAP
444-
FAR void kmm_checkcorruption(void);
444+
void kmm_checkcorruption(void);
445445
#else
446446
#define kmm_checkcorruption() umm_checkcorruption()
447447
#endif

include/nuttx/modem/u-blox.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
struct ubxmdm_regval
6262
{
63-
FAR char name[3];
63+
char name[3];
6464
bool val;
6565
};
6666

include/nuttx/net/dns.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ begin_packed_struct struct dns_answer_s
180180

181181
typedef CODE int (*dns_callback_t)(FAR void *arg,
182182
FAR struct sockaddr *addr,
183-
FAR socklen_t addrlen);
183+
socklen_t addrlen);
184184

185185
/****************************************************************************
186186
* Public Function Prototypes

include/nuttx/net/netdev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ struct net_driver_s
427427
/* Remember the outgoing fragments waiting to be sent */
428428

429429
#ifdef CONFIG_NET_IPFRAG
430-
FAR struct iob_queue_s d_fragout;
430+
struct iob_queue_s d_fragout;
431431
#endif
432432

433433
/* The d_buf array is used to hold incoming and outgoing packets. The

include/pthread.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ struct pthread_spinlock_s
452452
# ifndef __PTHREAD_SPINLOCK_T_DEFINED
453453
/* It is referenced via this standard type */
454454

455-
typedef FAR struct pthread_spinlock_s pthread_spinlock_t;
455+
typedef struct pthread_spinlock_s pthread_spinlock_t;
456456
# define __PTHREAD_SPINLOCK_T_DEFINED 1
457457
# endif
458458
#endif /* CONFIG_PTHREAD_SPINLOCKS */
@@ -891,7 +891,7 @@ typedef struct pthread_rwlock_s pthread_rwlock_t;
891891
#ifdef CONFIG_PTHREAD_SPINLOCKS
892892
# ifndef __PTHREAD_SPINLOCK_T_DEFINED
893893
struct pthread_spinlock_s;
894-
typedef FAR struct pthread_spinlock_s pthread_spinlock_t;
894+
typedef struct pthread_spinlock_s pthread_spinlock_t;
895895
# define __PTHREAD_SPINLOCK_T_DEFINED 1
896896
# endif
897897
#endif /* CONFIG_PTHREAD_SPINLOCKS */

libs/libc/locale/lib_gettext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static mutex_t g_lock = NXMUTEX_INITIALIZER;
9090
static FAR struct mofile_s *g_mofile;
9191

9292
#ifdef CONFIG_BUILD_KERNEL
93-
static FAR char g_domain[NAME_MAX];
93+
static char g_domain[NAME_MAX];
9494
#endif
9595

9696
/****************************************************************************

libs/libc/netdb/lib_dnsquery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ static void dns_query_error(FAR const char *prompt, int ret,
843843
****************************************************************************/
844844

845845
static int dns_query_callback(FAR void *arg, FAR struct sockaddr *addr,
846-
FAR socklen_t addrlen)
846+
socklen_t addrlen)
847847
{
848848
FAR struct dns_query_data_s *qdata = arg;
849849
FAR struct dns_query_s *query = &qdata->query;

libs/libc/netdb/lib_getaddrinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ int getaddrinfo(FAR const char *hostname, FAR const char *servname,
139139
int proto = 0;
140140
int socktype = 0;
141141
FAR char *hostbuffer;
142-
FAR struct hostent_s host;
142+
struct hostent_s host;
143143
FAR struct ai_s *ai;
144144
FAR struct ai_s *prev_ai = NULL;
145145
const int valid_flags = AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST |

libs/libc/netdb/lib_parsehostfile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ ssize_t parse_hostfile(FAR FILE *stream, FAR struct hostent_s *host,
255255
FAR char *buf, size_t buflen)
256256
{
257257
FAR struct hostent_info_s *info;
258-
FAR char addrstring[48];
258+
char addrstring[48];
259259
FAR char *ptr;
260260
FAR char *start;
261261
socklen_t addrlen;

0 commit comments

Comments
 (0)