style/FAR: remove FAR qualifier

N/A, remove FAR qualifier from non-pointer types

Signed-off-by: chao an <anchao.archer@bytedance.com>
This commit is contained in:
chao an
2025-10-16 11:48:32 +08:00
committed by Alin Jerpelea
parent 6088f6216b
commit 8847389886
16 changed files with 31 additions and 31 deletions
+14 -14
View File
@@ -75,20 +75,20 @@ struct lconv
FAR char *mon_grouping;
FAR char *positive_sign;
FAR char *negative_sign;
FAR char int_frac_digits;
FAR char frac_digits;
FAR char p_cs_precedes;
FAR char p_sep_by_space;
FAR char n_cs_precedes;
FAR char n_sep_by_space;
FAR char p_sign_posn;
FAR char n_sign_posn;
FAR char int_n_cs_precedes;
FAR char int_n_sep_by_space;
FAR char int_n_sign_posn;
FAR char int_p_cs_precedes;
FAR char int_p_sep_by_space;
FAR char int_p_sign_posn;
char int_frac_digits;
char frac_digits;
char p_cs_precedes;
char p_sep_by_space;
char n_cs_precedes;
char n_sep_by_space;
char p_sign_posn;
char n_sign_posn;
char int_n_cs_precedes;
char int_n_sep_by_space;
char int_n_sign_posn;
char int_p_cs_precedes;
char int_p_sep_by_space;
char int_p_sign_posn;
};
/* OpenGroup.org: The locale.h header shall define the locale_t type,
+2 -2
View File
@@ -436,12 +436,12 @@ void mm_checkcorruption(FAR struct mm_heap_s *heap);
/* Functions contained in umm_checkcorruption.c *****************************/
FAR void umm_checkcorruption(void);
void umm_checkcorruption(void);
/* Functions contained in kmm_checkcorruption.c *****************************/
#ifdef CONFIG_MM_KERNEL_HEAP
FAR void kmm_checkcorruption(void);
void kmm_checkcorruption(void);
#else
#define kmm_checkcorruption() umm_checkcorruption()
#endif
+1 -1
View File
@@ -60,7 +60,7 @@
struct ubxmdm_regval
{
FAR char name[3];
char name[3];
bool val;
};
+1 -1
View File
@@ -180,7 +180,7 @@ begin_packed_struct struct dns_answer_s
typedef CODE int (*dns_callback_t)(FAR void *arg,
FAR struct sockaddr *addr,
FAR socklen_t addrlen);
socklen_t addrlen);
/****************************************************************************
* Public Function Prototypes
+1 -1
View File
@@ -427,7 +427,7 @@ struct net_driver_s
/* Remember the outgoing fragments waiting to be sent */
#ifdef CONFIG_NET_IPFRAG
FAR struct iob_queue_s d_fragout;
struct iob_queue_s d_fragout;
#endif
/* The d_buf array is used to hold incoming and outgoing packets. The
+2 -2
View File
@@ -452,7 +452,7 @@ struct pthread_spinlock_s
# ifndef __PTHREAD_SPINLOCK_T_DEFINED
/* It is referenced via this standard type */
typedef FAR struct pthread_spinlock_s pthread_spinlock_t;
typedef struct pthread_spinlock_s pthread_spinlock_t;
# define __PTHREAD_SPINLOCK_T_DEFINED 1
# endif
#endif /* CONFIG_PTHREAD_SPINLOCKS */
@@ -891,7 +891,7 @@ typedef struct pthread_rwlock_s pthread_rwlock_t;
#ifdef CONFIG_PTHREAD_SPINLOCKS
# ifndef __PTHREAD_SPINLOCK_T_DEFINED
struct pthread_spinlock_s;
typedef FAR struct pthread_spinlock_s pthread_spinlock_t;
typedef struct pthread_spinlock_s pthread_spinlock_t;
# define __PTHREAD_SPINLOCK_T_DEFINED 1
# endif
#endif /* CONFIG_PTHREAD_SPINLOCKS */
+1 -1
View File
@@ -90,7 +90,7 @@ static mutex_t g_lock = NXMUTEX_INITIALIZER;
static FAR struct mofile_s *g_mofile;
#ifdef CONFIG_BUILD_KERNEL
static FAR char g_domain[NAME_MAX];
static char g_domain[NAME_MAX];
#endif
/****************************************************************************
+1 -1
View File
@@ -843,7 +843,7 @@ static void dns_query_error(FAR const char *prompt, int ret,
****************************************************************************/
static int dns_query_callback(FAR void *arg, FAR struct sockaddr *addr,
FAR socklen_t addrlen)
socklen_t addrlen)
{
FAR struct dns_query_data_s *qdata = arg;
FAR struct dns_query_s *query = &qdata->query;
+1 -1
View File
@@ -139,7 +139,7 @@ int getaddrinfo(FAR const char *hostname, FAR const char *servname,
int proto = 0;
int socktype = 0;
FAR char *hostbuffer;
FAR struct hostent_s host;
struct hostent_s host;
FAR struct ai_s *ai;
FAR struct ai_s *prev_ai = NULL;
const int valid_flags = AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST |
+1 -1
View File
@@ -255,7 +255,7 @@ ssize_t parse_hostfile(FAR FILE *stream, FAR struct hostent_s *host,
FAR char *buf, size_t buflen)
{
FAR struct hostent_info_s *info;
FAR char addrstring[48];
char addrstring[48];
FAR char *ptr;
FAR char *start;
socklen_t addrlen;
+1 -1
View File
@@ -38,7 +38,7 @@
* access to process-specific global data is needed.
*/
FAR struct getopt_s g_getopt_vars =
struct getopt_s g_getopt_vars =
{
NULL,
0,
+1 -1
View File
@@ -987,7 +987,7 @@ int userfs_run(FAR const char *mountpt,
FAR void *volinfo, size_t mxwrite)
{
FAR struct userfs_info_s *info;
FAR struct userfs_config_s config;
struct userfs_config_s config;
struct sockaddr_in server;
unsigned int iolen;
socklen_t addrlen;
+1 -1
View File
@@ -384,7 +384,7 @@ static inline void nxf_fillglyph(FAR struct nxfonts_fcache_s *priv,
if (priv->bpp == 24)
{
FAR uint32_t *ptr = (FAR uint32_t *)glyph->bitmap;
FAR uint32_t pixel[3];
uint32_t pixel[3];
/* Get two 32-bit values for alternating 32 representations */
+1 -1
View File
@@ -91,7 +91,7 @@ config SCHED_TICKLESS_TICK_ARGUMENT
Otherwise, these additional interfaces are expected:
int up_timer_tick_cancel(FAR clock_t *ticks);
int up_timer_tick_start(FAR clock_t ticks);
int up_timer_tick_start(clock_t ticks);
config SCHED_TICKLESS_ALARM
bool "Tickless alarm"
+1 -1
View File
@@ -197,7 +197,7 @@ extern enum task_deliver_e g_delivertasks[CONFIG_SMP_NCPUS];
/* This is the list of idle tasks */
extern FAR struct tcb_s g_idletcb[CONFIG_SMP_NCPUS];
extern struct tcb_s g_idletcb[CONFIG_SMP_NCPUS];
#endif
+1 -1
View File
@@ -220,7 +220,7 @@ pid_t nxsched_waitpid(pid_t pid, int *stat_loc, int options)
FAR struct child_status_s *child = NULL;
bool retains;
#endif
FAR struct siginfo info;
struct siginfo info;
irqstate_t flags;
sigset_t set;
int ret;