Merge pull request #5 from xiaoxiang781216/fix-void-cast
Unify the void cast usage
This commit is contained in:
commit
74ba8ff202
@ -217,15 +217,15 @@ int exec_builtin(FAR const char *appname, FAR char * const *argv,
|
||||
* be set appropriately).
|
||||
*/
|
||||
|
||||
(void)posix_spawn_file_actions_destroy(&file_actions);
|
||||
(void)posix_spawnattr_destroy(&attr);
|
||||
posix_spawn_file_actions_destroy(&file_actions);
|
||||
posix_spawnattr_destroy(&attr);
|
||||
return pid;
|
||||
|
||||
errout_with_actions:
|
||||
(void)posix_spawn_file_actions_destroy(&file_actions);
|
||||
posix_spawn_file_actions_destroy(&file_actions);
|
||||
|
||||
errout_with_attrs:
|
||||
(void)posix_spawnattr_destroy(&attr);
|
||||
posix_spawnattr_destroy(&attr);
|
||||
|
||||
errout_with_errno:
|
||||
set_errno(ret);
|
||||
|
@ -203,8 +203,8 @@ static int ajoy_wait(int fd, FAR const struct timespec *timeout)
|
||||
|
||||
/* Wait for a signal */
|
||||
|
||||
(void)sigemptyset(&set);
|
||||
(void)sigaddset(&set, CONFIG_EXAMPLES_AJOYSTICK_SIGNO);
|
||||
sigemptyset(&set);
|
||||
sigaddset(&set, CONFIG_EXAMPLES_AJOYSTICK_SIGNO);
|
||||
ret = sigtimedwait(&set, &value, timeout);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
@ -93,8 +93,8 @@ static int alarm_daemon(int argc, FAR char *argv[])
|
||||
|
||||
/* Make sure that the alarm signal is unmasked */
|
||||
|
||||
(void)sigemptyset(&set);
|
||||
(void)sigaddset(&set, CONFIG_EXAMPLES_ALARM_SIGNO);
|
||||
sigemptyset(&set);
|
||||
sigaddset(&set, CONFIG_EXAMPLES_ALARM_SIGNO);
|
||||
ret = sigprocmask(SIG_UNBLOCK, &set, NULL);
|
||||
if (ret != OK)
|
||||
{
|
||||
@ -109,8 +109,8 @@ static int alarm_daemon(int argc, FAR char *argv[])
|
||||
act.sa_sigaction = alarm_handler;
|
||||
act.sa_flags = SA_SIGINFO;
|
||||
|
||||
(void)sigfillset(&act.sa_mask);
|
||||
(void)sigdelset(&act.sa_mask, CONFIG_EXAMPLES_ALARM_SIGNO);
|
||||
sigfillset(&act.sa_mask);
|
||||
sigdelset(&act.sa_mask, CONFIG_EXAMPLES_ALARM_SIGNO);
|
||||
|
||||
ret = sigaction(CONFIG_EXAMPLES_ALARM_SIGNO, &act, NULL);
|
||||
if (ret < 0)
|
||||
@ -325,7 +325,7 @@ int main(int argc, FAR char *argv[])
|
||||
fprintf(stderr, "ERROR: RTC_RD_ALARM ioctl failed: %d\n",
|
||||
errcode);
|
||||
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
@ -380,7 +380,7 @@ int main(int argc, FAR char *argv[])
|
||||
fprintf(stderr, "ERROR: RTC_CANCEL_ALARM ioctl failed: %d\n",
|
||||
errcode);
|
||||
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
@ -409,13 +409,13 @@ int main(int argc, FAR char *argv[])
|
||||
fprintf(stderr, "ERROR: RTC_SET_RELATIVE ioctl failed: %d\n",
|
||||
errcode);
|
||||
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
printf("Alarm %d set in %lu seconds\n", alarmid, seconds);
|
||||
}
|
||||
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
@ -249,8 +249,8 @@ static int button_daemon(int argc, char *argv[])
|
||||
#ifdef CONFIG_EXAMPLES_BUTTONS_SIGNAL
|
||||
/* Wait for a signal */
|
||||
|
||||
(void)sigemptyset(&set);
|
||||
(void)sigaddset(&set, CONFIG_EXAMPLES_BUTTONS_SIGNO);
|
||||
sigemptyset(&set);
|
||||
sigaddset(&set, CONFIG_EXAMPLES_BUTTONS_SIGNO);
|
||||
ret = sigwaitinfo(&set, &value);
|
||||
if (ret < 0)
|
||||
{
|
||||
@ -366,7 +366,7 @@ static int button_daemon(int argc, char *argv[])
|
||||
}
|
||||
|
||||
errout_with_fd:
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
|
||||
errout:
|
||||
g_button_daemon_started = false;
|
||||
|
@ -78,7 +78,7 @@ static uint64_t gettime_nsecs(void)
|
||||
struct timespec ts;
|
||||
uint64_t nsecs;
|
||||
|
||||
(void)clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
|
||||
nsecs = ts.tv_sec;
|
||||
nsecs *= 1000 * 1000 * 1000;
|
||||
|
@ -233,8 +233,8 @@ static void onTransferReceived(CanardInstance *ins,
|
||||
(uint16_t) total_size);
|
||||
if (resp_res <= 0)
|
||||
{
|
||||
(void)fprintf(stderr, "Could not respond to GetNodeInfo; error %d\n",
|
||||
resp_res);
|
||||
fprintf(stderr, "Could not respond to GetNodeInfo; error %d\n",
|
||||
resp_res);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -257,8 +257,6 @@ static bool shouldAcceptTransfer(const CanardInstance * ins,
|
||||
CanardTransferType transfer_type,
|
||||
uint8_t source_node_id)
|
||||
{
|
||||
(void)source_node_id;
|
||||
|
||||
if (canardGetLocalNodeID(ins) == CANARD_BROADCAST_NODE_ID)
|
||||
{
|
||||
/* If we're in the process of allocation of dynamic node ID, accept
|
||||
@ -335,8 +333,8 @@ void process1HzTasks(uint64_t timestamp_usec)
|
||||
buffer, UAVCAN_NODE_STATUS_MESSAGE_SIZE);
|
||||
if (bc_res <= 0)
|
||||
{
|
||||
(void)fprintf(stderr, "Could not broadcast node status; error %d\n",
|
||||
bc_res);
|
||||
fprintf(stderr, "Could not broadcast node status; error %d\n",
|
||||
bc_res);
|
||||
}
|
||||
}
|
||||
|
||||
@ -352,8 +350,8 @@ void process1HzTasks(uint64_t timestamp_usec)
|
||||
payload, 0);
|
||||
if (resp_res <= 0)
|
||||
{
|
||||
(void)fprintf(stderr, "Could not request GetNodeInfo; error %d\n",
|
||||
resp_res);
|
||||
fprintf(stderr, "Could not request GetNodeInfo; error %d\n",
|
||||
resp_res);
|
||||
}
|
||||
}
|
||||
|
||||
@ -380,9 +378,9 @@ void processTxRxOnce(CanardNuttXInstance * nuttxcan, int timeout_msec)
|
||||
if (tx_res < 0) /* Failure - drop the frame and report */
|
||||
{
|
||||
canardPopTxQueue(&canard);
|
||||
(void)fprintf(stderr,
|
||||
"Transmit error %d, frame dropped, errno '%s'\n",
|
||||
tx_res, strerror(errno));
|
||||
fprintf(stderr,
|
||||
"Transmit error %d, frame dropped, errno '%s'\n",
|
||||
tx_res, strerror(errno));
|
||||
}
|
||||
else if (tx_res > 0) /* Success - just drop the frame */
|
||||
{
|
||||
@ -402,8 +400,8 @@ void processTxRxOnce(CanardNuttXInstance * nuttxcan, int timeout_msec)
|
||||
|
||||
if (rx_res < 0) /* Failure - report */
|
||||
{
|
||||
(void)fprintf(stderr, "Receive error %d, errno '%s'\n", rx_res,
|
||||
strerror(errno));
|
||||
fprintf(stderr, "Receive error %d, errno '%s'\n", rx_res,
|
||||
strerror(errno));
|
||||
}
|
||||
else if (rx_res > 0) /* Success - process the frame */
|
||||
{
|
||||
|
@ -186,8 +186,8 @@ static int button_daemon(int argc, char *argv[])
|
||||
|
||||
/* Wait for a signal */
|
||||
|
||||
(void)sigemptyset(&set);
|
||||
(void)sigaddset(&set, BUTTON_SIGNO);
|
||||
sigemptyset(&set);
|
||||
sigaddset(&set, BUTTON_SIGNO);
|
||||
ret = sigwaitinfo(&set, &value);
|
||||
if (ret < 0)
|
||||
{
|
||||
@ -198,7 +198,7 @@ static int button_daemon(int argc, char *argv[])
|
||||
|
||||
if (priv->state == CHRONO_STOPPED)
|
||||
{
|
||||
(void)clock_gettime(CLOCK_MONOTONIC, &priv->ts_start);
|
||||
clock_gettime(CLOCK_MONOTONIC, &priv->ts_start);
|
||||
priv->state = CHRONO_RUNNING;
|
||||
}
|
||||
else
|
||||
@ -214,7 +214,7 @@ static int button_daemon(int argc, char *argv[])
|
||||
}
|
||||
|
||||
errout_with_fd:
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
|
||||
errout:
|
||||
|
||||
@ -284,7 +284,7 @@ static void slcd_putc(FAR struct lib_outstream_s *stream, int ch)
|
||||
|
||||
if (stream->nput >= CONFIG_EXAMPLES_SLCD_BUFSIZE)
|
||||
{
|
||||
(void)slcd_flush(stream);
|
||||
slcd_flush(stream);
|
||||
}
|
||||
}
|
||||
|
||||
@ -427,7 +427,7 @@ int main(int argc, FAR char *argv[])
|
||||
{
|
||||
/* Get the current time */
|
||||
|
||||
(void)clock_gettime(CLOCK_MONOTONIC, &priv->ts_end);
|
||||
clock_gettime(CLOCK_MONOTONIC, &priv->ts_end);
|
||||
|
||||
/* How many seconds passed from initial time? */
|
||||
|
||||
|
@ -179,7 +179,7 @@ static void configdata_loopmemusage(void)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
g_mmafter = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&g_mmafter);
|
||||
mallinfo(&g_mmafter);
|
||||
#endif
|
||||
|
||||
/* Show the change from the previous loop */
|
||||
@ -206,7 +206,7 @@ static void configdata_endmemusage(void)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
g_mmafter = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&g_mmafter);
|
||||
mallinfo(&g_mmafter);
|
||||
#endif
|
||||
printf("\nFinal memory usage:\n");
|
||||
configdata_showmemusage(&g_mmbefore, &g_mmafter);
|
||||
@ -682,7 +682,7 @@ int main(int argc, FAR char *argv[])
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
g_mmbefore = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&g_mmbefore);
|
||||
mallinfo(&g_mmbefore);
|
||||
#endif
|
||||
|
||||
/* Loop seveal times ... create some config data items, delete them
|
||||
@ -706,7 +706,7 @@ int main(int argc, FAR char *argv[])
|
||||
#ifndef CONFIG_EXAMPLES_CONFIGDATA_SILENT
|
||||
printf("\n=== FILLING %u =============================\n", i);
|
||||
#endif
|
||||
(void)configdata_fillconfig();
|
||||
configdata_fillconfig();
|
||||
#ifndef CONFIG_EXAMPLES_CONFIGDATA_SILENT
|
||||
printf("Filled /dev/config\n");
|
||||
printf(" Number of entries: %d\n", g_nentries);
|
||||
|
@ -153,7 +153,7 @@ int main(int argc, FAR char *argv[])
|
||||
if (handle)
|
||||
{
|
||||
struct dhcpc_state ds;
|
||||
(void)dhcpc_request(handle, &ds);
|
||||
dhcpc_request(handle, &ds);
|
||||
netlib_set_ipv4addr("eth0", &ds.ipaddr);
|
||||
|
||||
if (ds.netmask.s_addr != 0)
|
||||
|
@ -201,8 +201,8 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
/* Wait for a signal */
|
||||
|
||||
(void)sigemptyset(&set);
|
||||
(void)sigaddset(&set, CONFIG_EXAMPLES_DJOYSTICK_SIGNO);
|
||||
sigemptyset(&set);
|
||||
sigaddset(&set, CONFIG_EXAMPLES_DJOYSTICK_SIGNO);
|
||||
ret = sigwaitinfo(&set, &value);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
@ -182,7 +182,7 @@ static void mm_update(FAR unsigned int *previous, FAR const char *msg)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
/* Show the change from the previous time */
|
||||
@ -207,7 +207,7 @@ static void mm_initmonitor(void)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
g_mminitial = mmcurrent.uordblks;
|
||||
@ -362,7 +362,7 @@ int main(int argc, FAR char *argv[])
|
||||
* the ROMFS mountpoint.
|
||||
*/
|
||||
|
||||
(void)setenv("PATH", MOUNTPT, 1);
|
||||
setenv("PATH", MOUNTPT, 1);
|
||||
#endif
|
||||
|
||||
/* Now exercise every program in the ROMFS file system */
|
||||
|
@ -139,7 +139,7 @@ int main(int argc, char **argv)
|
||||
act.sa_sigaction = siguser_action;
|
||||
act.sa_flags = SA_SIGINFO;
|
||||
|
||||
(void)sigemptyset(&act.sa_mask);
|
||||
sigemptyset(&act.sa_mask);
|
||||
|
||||
status = sigaction(SIGUSR1, &act, &oact1);
|
||||
if (status != 0)
|
||||
|
@ -107,8 +107,8 @@ int main(int argc, FAR char *argv[])
|
||||
{
|
||||
/* Perform a low-level format */
|
||||
|
||||
(void)inode->u.i_bops->ioctl(inode, BIOC_LLFORMAT, 0);
|
||||
(void)inode->u.i_bops->ioctl(inode, BIOC_GETFORMAT, (unsigned long) &fmt);
|
||||
inode->u.i_bops->ioctl(inode, BIOC_LLFORMAT, 0);
|
||||
inode->u.i_bops->ioctl(inode, BIOC_GETFORMAT, (unsigned long) &fmt);
|
||||
}
|
||||
|
||||
if (!(fmt.flags & SMART_FMT_ISFORMATTED))
|
||||
@ -137,7 +137,7 @@ int main(int argc, FAR char *argv[])
|
||||
seqs = (uint16_t *) malloc(fmt.nsectors << 1);
|
||||
if (seqs == NULL)
|
||||
{
|
||||
(void) free(buffer);
|
||||
free(buffer);
|
||||
fprintf(stderr, "Error allocating seqs buffer\n");
|
||||
goto errout_with_driver;
|
||||
}
|
||||
@ -145,8 +145,8 @@ int main(int argc, FAR char *argv[])
|
||||
sectors = (uint16_t *) malloc(fmt.nsectors << 1);
|
||||
if (sectors == NULL)
|
||||
{
|
||||
(void) free(seqs);
|
||||
(void) free(buffer);
|
||||
free(seqs);
|
||||
free(buffer);
|
||||
fprintf(stderr, "Error allocating sectors buffer\n");
|
||||
goto errout_with_driver;
|
||||
}
|
||||
@ -182,8 +182,8 @@ int main(int argc, FAR char *argv[])
|
||||
readwrite.offset = 0;
|
||||
readwrite.count = strlen(buffer) + 1;
|
||||
readwrite.buffer = (uint8_t *) buffer;
|
||||
(void)inode->u.i_bops->ioctl(inode, BIOC_WRITESECT, (unsigned long)
|
||||
&readwrite);
|
||||
inode->u.i_bops->ioctl(inode, BIOC_WRITESECT, (unsigned long)
|
||||
&readwrite);
|
||||
|
||||
/* Print the logical sector number */
|
||||
|
||||
@ -241,8 +241,8 @@ int main(int argc, FAR char *argv[])
|
||||
readwrite.offset = 0;
|
||||
readwrite.count = strlen(buffer) + 1;
|
||||
readwrite.buffer = (uint8_t *) buffer;
|
||||
(void)inode->u.i_bops->ioctl(inode, BIOC_WRITESECT, (unsigned long)
|
||||
&readwrite);
|
||||
inode->u.i_bops->ioctl(inode, BIOC_WRITESECT, (unsigned long)
|
||||
&readwrite);
|
||||
|
||||
/* Print the logical sector number */
|
||||
|
||||
@ -266,8 +266,8 @@ int main(int argc, FAR char *argv[])
|
||||
readwrite.offset = 64;
|
||||
readwrite.count = strlen(buffer) + 1;
|
||||
readwrite.buffer = (uint8_t *) buffer;
|
||||
(void)inode->u.i_bops->ioctl(inode, BIOC_WRITESECT, (unsigned long)
|
||||
&readwrite);
|
||||
inode->u.i_bops->ioctl(inode, BIOC_WRITESECT, (unsigned long)
|
||||
&readwrite);
|
||||
|
||||
/* Print the logical sector number */
|
||||
|
||||
@ -284,22 +284,22 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
if (sectors[x] != 0xFFFF)
|
||||
{
|
||||
(void)inode->u.i_bops->ioctl(inode, BIOC_FREESECT, (unsigned long)
|
||||
sectors[x]);
|
||||
inode->u.i_bops->ioctl(inode, BIOC_FREESECT, (unsigned long)
|
||||
sectors[x]);
|
||||
}
|
||||
}
|
||||
|
||||
errout_with_buffers:
|
||||
/* Free the allocated buffers */
|
||||
|
||||
(void) free(seqs);
|
||||
(void) free(sectors);
|
||||
(void) free(buffer);
|
||||
free(seqs);
|
||||
free(sectors);
|
||||
free(buffer);
|
||||
|
||||
errout_with_driver:
|
||||
/* Now close the block device and exit */
|
||||
|
||||
(void)close_blockdriver(inode);
|
||||
close_blockdriver(inode);
|
||||
|
||||
errout:
|
||||
|
||||
|
@ -183,7 +183,7 @@ static int ft80x_showname(int fd, FAR struct ft80x_dlbuffer_s *buffer,
|
||||
|
||||
/* Mkae sure that the backlight off */
|
||||
|
||||
(void)ft80x_backlight_set(fd, 0);
|
||||
ft80x_backlight_set(fd, 0);
|
||||
|
||||
/* Create the display list */
|
||||
|
||||
@ -235,8 +235,8 @@ static int ft80x_showname(int fd, FAR struct ft80x_dlbuffer_s *buffer,
|
||||
|
||||
/* Fade on then wait bit so that the user can read the example name */
|
||||
|
||||
(void)ft80x_backlight_fade(fd, 100, 2000);
|
||||
(void)sleep(1);
|
||||
ft80x_backlight_fade(fd, 100, 2000);
|
||||
sleep(1);
|
||||
return OK;
|
||||
}
|
||||
|
||||
@ -276,7 +276,7 @@ static int ft80x_example(int fd, FAR struct ft80x_dlbuffer_s *buffer,
|
||||
/* Wait a bit, then fade out */
|
||||
|
||||
sleep(2);
|
||||
(void)ft80x_backlight_fade(fd, 0, 2000);
|
||||
ft80x_backlight_fade(fd, 0, 2000);
|
||||
return OK;
|
||||
}
|
||||
|
||||
@ -325,7 +325,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
for (i = 0; i < NPRIMITIVES; i++)
|
||||
{
|
||||
(void)ft80x_example(fd, buffer, &g_primitives[i]);
|
||||
ft80x_example(fd, buffer, &g_primitives[i]);
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -335,7 +335,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
for (i = 0; i < NCOPROC; i++)
|
||||
{
|
||||
(void)ft80x_example(fd, buffer, &g_coproc[i]);
|
||||
ft80x_example(fd, buffer, &g_coproc[i]);
|
||||
}
|
||||
|
||||
free(buffer);
|
||||
|
@ -735,7 +735,7 @@ int ft80x_prim_stencil(int fd, FAR struct ft80x_dlbuffer_s *buffer)
|
||||
}
|
||||
|
||||
errout_with_sound:
|
||||
(void)ft80x_audio_enable(fd, false);
|
||||
ft80x_audio_enable(fd, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -488,7 +488,7 @@ int main(int argc, FAR char *argv[])
|
||||
{
|
||||
/* Parse and process the command */
|
||||
|
||||
(void)ftpc_parse(handle, g_line);
|
||||
ftpc_parse(handle, g_line);
|
||||
FFLUSH();
|
||||
}
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ int ftpd_daemon(int s_argc, char **s_argv)
|
||||
|
||||
/* Configure acounts */
|
||||
|
||||
(void)ftpd_accounts(handle);
|
||||
ftpd_accounts(handle);
|
||||
|
||||
/* Then drive the FTPD server. */
|
||||
|
||||
|
@ -268,14 +268,14 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
/* Wait up to 5 seconds for the signal */
|
||||
|
||||
(void)sigemptyset(&set);
|
||||
(void)sigaddset(&set, signo);
|
||||
sigemptyset(&set);
|
||||
sigaddset(&set, signo);
|
||||
|
||||
ts.tv_sec = 5;
|
||||
ts.tv_nsec = 0;
|
||||
|
||||
ret = sigtimedwait(&set, NULL, &ts);
|
||||
(void)ioctl(fd, GPIOC_UNREGISTER, 0);
|
||||
ioctl(fd, GPIOC_UNREGISTER, 0);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
|
@ -242,7 +242,7 @@ int main(int argc, FAR char *argv[])
|
||||
#ifdef CONFIG_EXAMPLES_HIDKBD_ENCODED
|
||||
hidkbd_decode(buffer, nbytes);
|
||||
#else
|
||||
(void)write(1, buffer, nbytes);
|
||||
write(1, buffer, nbytes);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -293,14 +293,14 @@ int main(int argc, FAR char *argv[])
|
||||
* is in place for each transmission.
|
||||
*/
|
||||
|
||||
(void)pthread_attr_getschedparam(&attr, ¶m);
|
||||
pthread_attr_getschedparam(&attr, ¶m);
|
||||
param.sched_priority++;
|
||||
(void)pthread_attr_setschedparam(&attr, ¶m);
|
||||
pthread_attr_setschedparam(&attr, ¶m);
|
||||
#endif
|
||||
|
||||
/* Set the receiver stack size */
|
||||
|
||||
(void)pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_I2SCHAR_RXSTACKSIZE);
|
||||
pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_I2SCHAR_RXSTACKSIZE);
|
||||
|
||||
/* Start the receiver */
|
||||
|
||||
@ -323,7 +323,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
/* Set the transmitter stack size */
|
||||
|
||||
(void)pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_I2SCHAR_TXSTACKSIZE);
|
||||
pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_I2SCHAR_TXSTACKSIZE);
|
||||
|
||||
/* Start the transmitter */
|
||||
|
||||
@ -334,7 +334,7 @@ int main(int argc, FAR char *argv[])
|
||||
printf("i2schar_main: ERROR: failed to Start transmitter thread: %d\n", ret);
|
||||
#ifdef CONFIG_EXAMPLES_I2SCHAR_RX
|
||||
printf("i2schar_main: Waiting for the receiver thread\n");
|
||||
(void)pthread_join(receiver, &result);
|
||||
pthread_join(receiver, &result);
|
||||
#endif
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ static int led_daemon(int argc, char *argv[])
|
||||
}
|
||||
|
||||
errout_with_fd:
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
|
||||
errout:
|
||||
g_led_daemon_started = false;
|
||||
|
@ -177,8 +177,6 @@ static lv_res_t keyboard_open_close(lv_obj_t *text_area)
|
||||
{
|
||||
lv_obj_t *parent;
|
||||
|
||||
(void)text_area; /* Unused */
|
||||
|
||||
/* Text area is on the scrollable part of the page but we need
|
||||
* the page itself
|
||||
*/
|
||||
@ -235,8 +233,6 @@ static lv_res_t keyboard_open_close(lv_obj_t *text_area)
|
||||
|
||||
static lv_res_t keyboard_hide_action(lv_obj_t *keyboard)
|
||||
{
|
||||
(void)keyboard; /* Unused */
|
||||
|
||||
#if USE_LV_ANIMATION
|
||||
lv_obj_animate(kb, LV_ANIM_FLOAT_BOTTOM | LV_ANIM_OUT, 300, 0,
|
||||
kb_hide_anim_end);
|
||||
|
@ -151,12 +151,12 @@ int main(int argc, FAR char *argv[])
|
||||
#ifdef NEED_BOARDINIT
|
||||
/* Perform board-specific driver initialization */
|
||||
|
||||
(void)boardctl(BOARDIOC_INIT, 0);
|
||||
boardctl(BOARDIOC_INIT, 0);
|
||||
|
||||
#ifdef CONFIG_BOARDCTL_FINALINIT
|
||||
/* Perform architecture-specific final-initialization (if configured) */
|
||||
|
||||
(void)boardctl(BOARDIOC_FINALINIT, 0);
|
||||
boardctl(BOARDIOC_FINALINIT, 0);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -181,7 +181,7 @@ void mld_catfile(FAR const char *filepath, FAR char **iobuffer)
|
||||
*iobuffer = (FAR char *)malloc(IOBUFFERSIZE);
|
||||
if (*iobuffer == NULL)
|
||||
{
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
fprintf(stderr, "Failed to allocation I/O buffer\n");
|
||||
return;
|
||||
}
|
||||
@ -244,7 +244,7 @@ void mld_catfile(FAR const char *filepath, FAR char **iobuffer)
|
||||
}
|
||||
}
|
||||
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -232,13 +232,13 @@ static inline int modbus_initialize(void)
|
||||
errout_with_modbus:
|
||||
/* Release hardware resources. */
|
||||
|
||||
(void)eMBClose();
|
||||
eMBClose();
|
||||
|
||||
errout_with_mutex:
|
||||
|
||||
/* Free/uninitialize data structures */
|
||||
|
||||
(void)pthread_mutex_destroy(&g_modbus.lock);
|
||||
pthread_mutex_destroy(&g_modbus.lock);
|
||||
|
||||
g_modbus.threadstate = STOPPED;
|
||||
return status;
|
||||
@ -289,15 +289,15 @@ static void *modbus_pollthread(void *pvarg)
|
||||
|
||||
/* Disable */
|
||||
|
||||
(void)eMBDisable();
|
||||
eMBDisable();
|
||||
|
||||
/* Release hardware resources. */
|
||||
|
||||
(void)eMBClose();
|
||||
eMBClose();
|
||||
|
||||
/* Free/uninitialize data structures */
|
||||
|
||||
(void)pthread_mutex_destroy(&g_modbus.lock);
|
||||
pthread_mutex_destroy(&g_modbus.lock);
|
||||
g_modbus.threadstate = STOPPED;
|
||||
return NULL;
|
||||
}
|
||||
@ -373,9 +373,9 @@ int main(int argc, FAR char *argv[])
|
||||
switch (option)
|
||||
{
|
||||
case 'd': /* Disable protocol stack */
|
||||
(void)pthread_mutex_lock(&g_modbus.lock);
|
||||
pthread_mutex_lock(&g_modbus.lock);
|
||||
g_modbus.threadstate = SHUTDOWN;
|
||||
(void)pthread_mutex_unlock(&g_modbus.lock);
|
||||
pthread_mutex_unlock(&g_modbus.lock);
|
||||
break;
|
||||
|
||||
case 'e': /* Enable the protocol stack */
|
||||
|
@ -169,11 +169,11 @@ static inline void mbmaster_deinitialize(void)
|
||||
{
|
||||
/* Disable modbus stack */
|
||||
|
||||
(void)eMBMasterDisable();
|
||||
eMBMasterDisable();
|
||||
|
||||
/* Release hardware resources */
|
||||
|
||||
(void)eMBMasterClose();
|
||||
eMBMasterClose();
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -155,7 +155,7 @@ static void dump_neighbor(void)
|
||||
{
|
||||
FAR struct neighbor_entry_s *nb = &nbtab[i];
|
||||
|
||||
(void)inet_ntop(AF_INET6, &nb->ne_ipaddr, buffer, INET6_ADDRSTRLEN);
|
||||
inet_ntop(AF_INET6, &nb->ne_ipaddr, buffer, INET6_ADDRSTRLEN);
|
||||
printf(" Dest: %s MAC Type: %2u Size: %3u Addr: ",
|
||||
buffer, nb->ne_addr.na_lltype, nb->ne_addr.na_llsize);
|
||||
|
||||
@ -234,7 +234,7 @@ static void dump_arp(void)
|
||||
{
|
||||
FAR struct arp_entry_s *arp = &arptab[i];
|
||||
|
||||
(void)inet_ntop(AF_INET, &arp->at_ipaddr, buffer, INET_ADDRSTRLEN);
|
||||
inet_ntop(AF_INET, &arp->at_ipaddr, buffer, INET_ADDRSTRLEN);
|
||||
printf(" Dest: %s MAC Addr: ", buffer);
|
||||
|
||||
for (j = 0; j < ETHER_ADDR_LEN; j++)
|
||||
@ -301,16 +301,16 @@ static void dump_route(sa_family_t family)
|
||||
{
|
||||
FAR struct rtentry *rte = &rttab[i];
|
||||
|
||||
(void)inet_ntop(rte->rt_dst.ss_family, &rte->rt_dst.ss_data, buffer,
|
||||
ROUTE_BUFSIZE);
|
||||
inet_ntop(rte->rt_dst.ss_family, &rte->rt_dst.ss_data, buffer,
|
||||
ROUTE_BUFSIZE);
|
||||
printf(" Dest: %s ", buffer);
|
||||
|
||||
(void)inet_ntop(rte->rt_gateway.ss_family, &rte->rt_gateway.ss_data,
|
||||
buffer, ROUTE_BUFSIZE);
|
||||
inet_ntop(rte->rt_gateway.ss_family, &rte->rt_gateway.ss_data,
|
||||
buffer, ROUTE_BUFSIZE);
|
||||
printf("Gateway: %s ", buffer);
|
||||
|
||||
(void)inet_ntop(rte->rt_genmask.ss_family, &rte->rt_genmask.ss_data,
|
||||
buffer, ROUTE_BUFSIZE);
|
||||
inet_ntop(rte->rt_genmask.ss_family, &rte->rt_genmask.ss_data,
|
||||
buffer, ROUTE_BUFSIZE);
|
||||
printf("GenMASK: %s ", buffer);
|
||||
printf("Flags: %04x\n", rte->rt_flags);
|
||||
}
|
||||
|
@ -367,7 +367,7 @@ void *lo_listener(pthread_addr_t pvarg)
|
||||
nsds--;
|
||||
if (i == nls.listensd)
|
||||
{
|
||||
(void)net_connection(&nls);
|
||||
net_connection(&nls);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -117,7 +117,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
#if defined(CONFIG_EXAMPLES_NETTEST_LOOPBACK) && defined(CONFIG_SCHED_WAITPID)
|
||||
printf("main: Waiting for the server to exit\n");
|
||||
(void)waitpid(child, &statloc, 0);
|
||||
waitpid(child, &statloc, 0);
|
||||
#endif
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
@ -143,7 +143,7 @@ static void nxeg_drivemouse(void)
|
||||
for (y = 0; y < g_yres; y += ystep)
|
||||
{
|
||||
printf("nxeg_drivemouse: Mouse left button at (%d,%d)\n", x, y);
|
||||
(void)nx_mousein(g_hnx, x, y, NX_MOUSE_LEFTBUTTON);
|
||||
nx_mousein(g_hnx, x, y, NX_MOUSE_LEFTBUTTON);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -475,10 +475,10 @@ static int nxeg_initialize(void)
|
||||
* smoothly.
|
||||
*/
|
||||
|
||||
(void)pthread_attr_init(&attr);
|
||||
pthread_attr_init(&attr);
|
||||
param.sched_priority = CONFIG_EXAMPLES_NX_LISTENERPRIO;
|
||||
(void)pthread_attr_setschedparam(&attr, ¶m);
|
||||
(void)pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_NX_STACKSIZE);
|
||||
pthread_attr_setschedparam(&attr, ¶m);
|
||||
pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_NX_STACKSIZE);
|
||||
|
||||
ret = pthread_create(&thread, &attr, nx_listenerthread, NULL);
|
||||
if (ret != 0)
|
||||
@ -496,7 +496,7 @@ static int nxeg_initialize(void)
|
||||
* are connected.
|
||||
*/
|
||||
|
||||
(void)sem_wait(&g_semevent);
|
||||
sem_wait(&g_semevent);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -574,7 +574,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
while (!b_haveresolution)
|
||||
{
|
||||
(void)sem_wait(&g_semevent);
|
||||
sem_wait(&g_semevent);
|
||||
}
|
||||
printf("nx_main: Screen resolution (%d,%d)\n", g_xres, g_yres);
|
||||
|
||||
@ -775,13 +775,13 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
errout_with_hwnd2:
|
||||
printf("nx_main: Close window #2\n");
|
||||
(void)nxeg_closewindow(hwnd2, &g_wstate[1]);
|
||||
nxeg_closewindow(hwnd2, &g_wstate[1]);
|
||||
|
||||
/* Close the window1 */
|
||||
|
||||
errout_with_hwnd1:
|
||||
printf("nx_main: Close window #1\n");
|
||||
(void)nxeg_closewindow(hwnd1, &g_wstate[0]);
|
||||
nxeg_closewindow(hwnd1, &g_wstate[0]);
|
||||
|
||||
errout_with_nx:
|
||||
/* Disconnect from the server */
|
||||
|
@ -164,10 +164,10 @@ static inline int nxdemo_initialize(void)
|
||||
* smoothly.
|
||||
*/
|
||||
|
||||
(void)pthread_attr_init(&attr);
|
||||
pthread_attr_init(&attr);
|
||||
param.sched_priority = CONFIG_EXAMPLES_NXDEMO_LISTENERPRIO;
|
||||
(void)pthread_attr_setschedparam(&attr, ¶m);
|
||||
(void)pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_NXDEMO_LISTENER_STACKSIZE);
|
||||
pthread_attr_setschedparam(&attr, ¶m);
|
||||
pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_NXDEMO_LISTENER_STACKSIZE);
|
||||
|
||||
ret = pthread_create(&thread, &attr, nxdemo_listener, NULL);
|
||||
if (ret != 0)
|
||||
@ -184,7 +184,7 @@ static inline int nxdemo_initialize(void)
|
||||
* are connected.
|
||||
*/
|
||||
|
||||
(void)sem_wait(&g_nxdemo.eventsem);
|
||||
sem_wait(&g_nxdemo.eventsem);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -237,7 +237,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
while (!g_nxdemo.havepos)
|
||||
{
|
||||
(void)sem_wait(&g_nxdemo.eventsem);
|
||||
sem_wait(&g_nxdemo.eventsem);
|
||||
}
|
||||
|
||||
printf("nxdemo_main: Screen resolution (%d,%d)\n",
|
||||
@ -247,7 +247,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
/* Release background */
|
||||
|
||||
(void)nx_releasebkgd(g_nxdemo.hbkgd);
|
||||
nx_releasebkgd(g_nxdemo.hbkgd);
|
||||
|
||||
/* Close NX */
|
||||
|
||||
|
@ -187,7 +187,7 @@ int main(int argc, FAR char *argv[])
|
||||
* the ROMFS mountpoint.
|
||||
*/
|
||||
|
||||
(void)setenv("PATH", MOUNTPT, 1);
|
||||
setenv("PATH", MOUNTPT, 1);
|
||||
#endif
|
||||
|
||||
/* Now excercise every progrm in the ROMFS file system */
|
||||
|
@ -139,7 +139,7 @@ int main(int argc, char **argv)
|
||||
act.sa_sigaction = siguser_action;
|
||||
act.sa_flags = SA_SIGINFO;
|
||||
|
||||
(void)sigemptyset(&act.sa_mask);
|
||||
sigemptyset(&act.sa_mask);
|
||||
|
||||
status = sigaction(SIGUSR1, &act, &oact1);
|
||||
if (status != 0)
|
||||
|
@ -402,8 +402,8 @@ void nxhello_hello(NXWINDOW hwnd)
|
||||
#if CONFIG_NX_NPLANES > 1
|
||||
# warning "More logic is needed for the case where CONFIG_NX_PLANES > 1"
|
||||
#endif
|
||||
(void)RENDERER((FAR nxgl_mxpixel_t*)glyph, fheight, fwidth,
|
||||
fstride, fbm, CONFIG_EXAMPLES_NXHELLO_FONTCOLOR);
|
||||
RENDERER((FAR nxgl_mxpixel_t*)glyph, fheight, fwidth,
|
||||
fstride, fbm, CONFIG_EXAMPLES_NXHELLO_FONTCOLOR);
|
||||
|
||||
/* Describe the destination of the font with a rectangle */
|
||||
|
||||
|
@ -141,10 +141,10 @@ static inline int nxhello_initialize(void)
|
||||
* smoothly.
|
||||
*/
|
||||
|
||||
(void)pthread_attr_init(&attr);
|
||||
pthread_attr_init(&attr);
|
||||
param.sched_priority = CONFIG_EXAMPLES_NXHELLO_LISTENERPRIO;
|
||||
(void)pthread_attr_setschedparam(&attr, ¶m);
|
||||
(void)pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_NXHELLO_LISTENER_STACKSIZE);
|
||||
pthread_attr_setschedparam(&attr, ¶m);
|
||||
pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_NXHELLO_LISTENER_STACKSIZE);
|
||||
|
||||
ret = pthread_create(&thread, &attr, nxhello_listener, NULL);
|
||||
if (ret != 0)
|
||||
@ -161,7 +161,7 @@ static inline int nxhello_initialize(void)
|
||||
* are connected.
|
||||
*/
|
||||
|
||||
(void)sem_wait(&g_nxhello.eventsem);
|
||||
sem_wait(&g_nxhello.eventsem);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -235,7 +235,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
while (!g_nxhello.havepos)
|
||||
{
|
||||
(void)sem_wait(&g_nxhello.eventsem);
|
||||
sem_wait(&g_nxhello.eventsem);
|
||||
}
|
||||
|
||||
printf("nxhello_main: Screen resolution (%d,%d)\n", g_nxhello.xres, g_nxhello.yres);
|
||||
@ -248,7 +248,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
/* Release background */
|
||||
|
||||
(void)nx_releasebkgd(g_nxhello.hbkgd);
|
||||
nx_releasebkgd(g_nxhello.hbkgd);
|
||||
|
||||
/* Close NX */
|
||||
|
||||
|
@ -145,10 +145,10 @@ static inline int nximage_initialize(void)
|
||||
* smoothly.
|
||||
*/
|
||||
|
||||
(void)pthread_attr_init(&attr);
|
||||
pthread_attr_init(&attr);
|
||||
param.sched_priority = CONFIG_EXAMPLES_NXIMAGE_LISTENERPRIO;
|
||||
(void)pthread_attr_setschedparam(&attr, ¶m);
|
||||
(void)pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_NXIMAGE_LISTENER_STACKSIZE);
|
||||
pthread_attr_setschedparam(&attr, ¶m);
|
||||
pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_NXIMAGE_LISTENER_STACKSIZE);
|
||||
|
||||
ret = pthread_create(&thread, &attr, nximage_listener, NULL);
|
||||
if (ret != 0)
|
||||
@ -165,7 +165,7 @@ static inline int nximage_initialize(void)
|
||||
* are connected.
|
||||
*/
|
||||
|
||||
(void)sem_wait(&g_nximage.eventsem);
|
||||
sem_wait(&g_nximage.eventsem);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -232,7 +232,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
while (!g_nximage.havepos)
|
||||
{
|
||||
(void)sem_wait(&g_nximage.eventsem);
|
||||
sem_wait(&g_nximage.eventsem);
|
||||
}
|
||||
|
||||
printf("nximage_main: Screen resolution (%d,%d)\n", g_nximage.xres, g_nximage.yres);
|
||||
@ -244,7 +244,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
/* Release background */
|
||||
|
||||
(void)nx_releasebkgd(g_nximage.hbkgd);
|
||||
nx_releasebkgd(g_nximage.hbkgd);
|
||||
|
||||
/* Close NX */
|
||||
|
||||
|
@ -167,10 +167,10 @@ static inline int nxlines_initialize(void)
|
||||
* smoothly.
|
||||
*/
|
||||
|
||||
(void)pthread_attr_init(&attr);
|
||||
pthread_attr_init(&attr);
|
||||
param.sched_priority = CONFIG_EXAMPLES_NXLINES_LISTENERPRIO;
|
||||
(void)pthread_attr_setschedparam(&attr, ¶m);
|
||||
(void)pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_NXLINES_LISTENER_STACKSIZE);
|
||||
pthread_attr_setschedparam(&attr, ¶m);
|
||||
pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_NXLINES_LISTENER_STACKSIZE);
|
||||
|
||||
ret = pthread_create(&thread, &attr, nxlines_listener, NULL);
|
||||
if (ret != 0)
|
||||
@ -187,7 +187,7 @@ static inline int nxlines_initialize(void)
|
||||
* are connected.
|
||||
*/
|
||||
|
||||
(void)sem_wait(&g_nxlines.eventsem);
|
||||
sem_wait(&g_nxlines.eventsem);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -251,7 +251,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
while (!g_nxlines.havepos)
|
||||
{
|
||||
(void)sem_wait(&g_nxlines.eventsem);
|
||||
sem_wait(&g_nxlines.eventsem);
|
||||
}
|
||||
|
||||
printf("nxlines_main: Screen resolution (%d,%d)\n", g_nxlines.xres, g_nxlines.yres);
|
||||
@ -264,7 +264,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
/* Release background */
|
||||
|
||||
(void)nx_releasebkgd(g_nxlines.hbkgd);
|
||||
nx_releasebkgd(g_nxlines.hbkgd);
|
||||
|
||||
/* Close NX */
|
||||
|
||||
|
@ -160,10 +160,10 @@ static int nxterm_initialize(void)
|
||||
* smoothly.
|
||||
*/
|
||||
|
||||
(void)pthread_attr_init(&attr);
|
||||
pthread_attr_init(&attr);
|
||||
param.sched_priority = CONFIG_EXAMPLES_NXTERM_LISTENERPRIO;
|
||||
(void)pthread_attr_setschedparam(&attr, ¶m);
|
||||
(void)pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_NXTERM_STACKSIZE);
|
||||
pthread_attr_setschedparam(&attr, ¶m);
|
||||
pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_NXTERM_STACKSIZE);
|
||||
|
||||
ret = pthread_create(&thread, &attr, nxterm_listener, NULL);
|
||||
if (ret != 0)
|
||||
@ -180,7 +180,7 @@ static int nxterm_initialize(void)
|
||||
* are connected.
|
||||
*/
|
||||
|
||||
(void)sem_wait(&g_nxterm_vars.eventsem);
|
||||
sem_wait(&g_nxterm_vars.eventsem);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -200,14 +200,14 @@ static int nxterm_task(int argc, char **argv)
|
||||
/* If the console front end is selected, then run it on this thread */
|
||||
|
||||
#ifdef CONFIG_NSH_CONSOLE
|
||||
(void)nsh_consolemain(0, NULL);
|
||||
nsh_consolemain(0, NULL);
|
||||
#endif
|
||||
|
||||
printf("nxterm_task: Unlinking the NX console device\n");
|
||||
(void)unlink(CONFIG_EXAMPLES_NXTERM_DEVNAME);
|
||||
unlink(CONFIG_EXAMPLES_NXTERM_DEVNAME);
|
||||
|
||||
printf("nxterm_task: Close the window\n");
|
||||
(void)nxtk_closewindow(g_nxterm_vars.hwnd);
|
||||
nxtk_closewindow(g_nxterm_vars.hwnd);
|
||||
|
||||
/* Disconnect from the server */
|
||||
|
||||
@ -308,7 +308,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
while (!g_nxterm_vars.haveres)
|
||||
{
|
||||
(void)sem_wait(&g_nxterm_vars.eventsem);
|
||||
sem_wait(&g_nxterm_vars.eventsem);
|
||||
}
|
||||
|
||||
printf("nxterm_main: Screen resolution (%d,%d)\n",
|
||||
@ -409,14 +409,14 @@ int main(int argc, FAR char *argv[])
|
||||
printf("nxterm_main: Starting the console task\n");
|
||||
fflush(stdout);
|
||||
|
||||
(void)fflush(stdout);
|
||||
(void)fflush(stderr);
|
||||
fflush(stdout);
|
||||
fflush(stderr);
|
||||
|
||||
(void)fclose(stdout);
|
||||
(void)fclose(stderr);
|
||||
fclose(stdout);
|
||||
fclose(stderr);
|
||||
|
||||
(void)dup2(fd, 1);
|
||||
(void)dup2(fd, 2);
|
||||
dup2(fd, 1);
|
||||
dup2(fd, 2);
|
||||
|
||||
/* And we can close our original driver file descriptor */
|
||||
|
||||
@ -435,10 +435,10 @@ int main(int argc, FAR char *argv[])
|
||||
/* Error Exits ************************************************************/
|
||||
|
||||
errout_with_driver:
|
||||
(void)unlink(CONFIG_EXAMPLES_NXTERM_DEVNAME);
|
||||
unlink(CONFIG_EXAMPLES_NXTERM_DEVNAME);
|
||||
|
||||
errout_with_hwnd:
|
||||
(void)nxtk_closewindow(g_nxterm_vars.hwnd);
|
||||
nxtk_closewindow(g_nxterm_vars.hwnd);
|
||||
|
||||
errout_with_nx:
|
||||
/* Disconnect from the server */
|
||||
|
@ -128,14 +128,14 @@ static void nxwndo_redraw(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect,
|
||||
iocargs.cmd = NXTERMIOC_NXTERM_REDRAW;
|
||||
iocargs.arg = (uintptr_t)&redraw;
|
||||
|
||||
(void)boardctl(BOARDIOC_NXTERM_IOCTL, (uintptr_t)&iocargs);
|
||||
boardctl(BOARDIOC_NXTERM_IOCTL, (uintptr_t)&iocargs);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* If the driver has not been opened, then just redraw the window color */
|
||||
|
||||
wcolor[0] = CONFIG_EXAMPLES_NXTERM_WCOLOR;
|
||||
(void)nxtk_fillwindow(hwnd, rect, wcolor);
|
||||
nxtk_fillwindow(hwnd, rect, wcolor);
|
||||
}
|
||||
}
|
||||
|
||||
@ -202,7 +202,7 @@ static void nxwndo_kbdin(NXWINDOW hwnd, uint8_t nch, FAR const uint8_t *ch,
|
||||
FAR void *arg)
|
||||
{
|
||||
ginfo("hwnd=%p nch=%d\n", hwnd, nch);
|
||||
(void)write(1, ch, nch);
|
||||
write(1, ch, nch);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -222,10 +222,10 @@ static int nxtext_initialize(void)
|
||||
* smoothly.
|
||||
*/
|
||||
|
||||
(void)pthread_attr_init(&attr);
|
||||
pthread_attr_init(&attr);
|
||||
param.sched_priority = CONFIG_EXAMPLES_NXTEXT_LISTENERPRIO;
|
||||
(void)pthread_attr_setschedparam(&attr, ¶m);
|
||||
(void)pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_NXTEXT_STACKSIZE);
|
||||
pthread_attr_setschedparam(&attr, ¶m);
|
||||
pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_NXTEXT_STACKSIZE);
|
||||
|
||||
ret = pthread_create(&thread, &attr, nxtext_listener, NULL);
|
||||
if (ret != 0)
|
||||
@ -244,7 +244,7 @@ static int nxtext_initialize(void)
|
||||
* are connected.
|
||||
*/
|
||||
|
||||
(void)sem_wait(&g_semevent);
|
||||
sem_wait(&g_semevent);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -331,7 +331,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
while (!b_haveresolution)
|
||||
{
|
||||
(void)sem_wait(&g_semevent);
|
||||
sem_wait(&g_semevent);
|
||||
}
|
||||
|
||||
printf("nxtext_main: Screen resolution (%d,%d)\n", g_xres, g_yres);
|
||||
@ -376,7 +376,7 @@ int main(int argc, FAR char *argv[])
|
||||
/* Destroy the pop-up window and restart the sequence */
|
||||
|
||||
printf("nxtext_main: Close pop-up\n");
|
||||
(void)nxpu_close(hwnd);
|
||||
nxpu_close(hwnd);
|
||||
popcnt = 0;
|
||||
}
|
||||
|
||||
@ -400,11 +400,11 @@ errout_with_hwnd:
|
||||
if (popcnt >= 3)
|
||||
{
|
||||
printf("nxtext_main: Close pop-up\n");
|
||||
(void)nxpu_close(hwnd);
|
||||
nxpu_close(hwnd);
|
||||
}
|
||||
|
||||
//errout_with_bkgd:
|
||||
(void)nx_releasebkgd(g_bgwnd);
|
||||
nx_releasebkgd(g_bgwnd);
|
||||
|
||||
errout_with_nx:
|
||||
/* Disconnect from the server */
|
||||
|
@ -386,7 +386,7 @@ NXWINDOW nxpu_open(void)
|
||||
return hwnd;
|
||||
|
||||
errout_with_hwnd:
|
||||
(void)nx_closewindow(hwnd);
|
||||
nx_closewindow(hwnd);
|
||||
|
||||
errout_with_state:
|
||||
return NULL;
|
||||
|
@ -413,7 +413,7 @@ void *net_listener(pthread_addr_t pvarg)
|
||||
nsds--;
|
||||
if (i == nls.listensd)
|
||||
{
|
||||
(void)net_connection(&nls);
|
||||
net_connection(&nls);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -111,7 +111,7 @@ void *poll_listener(pthread_addr_t pvarg)
|
||||
{
|
||||
printf("poll_listener: ERROR Failed to open FIFO %s: %d\n",
|
||||
FIFO_PATH1, errno);
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
return (void*)-1;
|
||||
}
|
||||
|
||||
@ -261,6 +261,6 @@ void *poll_listener(pthread_addr_t pvarg)
|
||||
|
||||
/* Won't get here */
|
||||
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ void *select_listener(pthread_addr_t pvarg)
|
||||
{
|
||||
printf("select_listener: ERROR Failed to open FIFO %s: %d\n",
|
||||
FIFO_PATH2, errno);
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
return (void*)-1;
|
||||
}
|
||||
|
||||
@ -189,6 +189,6 @@ void *select_listener(pthread_addr_t pvarg)
|
||||
|
||||
/* Won't get here */
|
||||
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ int main(int argc, FAR char *argv[])
|
||||
if (stream == NULL)
|
||||
{
|
||||
fprintf(stderr, "ERROR: popen() failed: %d\n", errno);
|
||||
(void)timer_delete(timerid);
|
||||
timer_delete(timerid);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
@ -190,6 +190,6 @@ int main(int argc, FAR char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
(void)timer_delete(timerid);
|
||||
timer_delete(timerid);
|
||||
return exitcode;
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ static void mm_update(FAR unsigned int *previous, FAR const char *msg)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
/* Show the change from the previous time */
|
||||
@ -200,7 +200,7 @@ static void mm_initmonitor(void)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
g_mminitial = mmcurrent.uordblks;
|
||||
@ -272,14 +272,14 @@ int main(int argc, FAR char *argv[])
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_LIB_ENVPATH) && !defined(CONFIG_PATH_INITIAL)
|
||||
(void)setenv("PATH", MOUNTPT, 1);
|
||||
setenv("PATH", MOUNTPT, 1);
|
||||
#endif
|
||||
|
||||
/* Make sure that we are using our symbol tablee */
|
||||
|
||||
symdesc.symtab = (FAR struct symtab_s *)g_spawn_exports; /* Discard 'const' */
|
||||
symdesc.nsymbols = g_spawn_nexports;
|
||||
(void)boardctl(BOARDIOC_APP_SYMTAB, (uintptr_t)&symdesc);
|
||||
boardctl(BOARDIOC_APP_SYMTAB, (uintptr_t)&symdesc);
|
||||
|
||||
/*************************************************************************
|
||||
* Case 1: Simple program with arguments
|
||||
|
@ -465,12 +465,12 @@ int main(int argc, char *argv[])
|
||||
#ifndef CONFIG_NSH_ARCHINIT
|
||||
/* Perform architecture-specific initialization (if configured) */
|
||||
|
||||
(void)boardctl(BOARDIOC_INIT, 0);
|
||||
boardctl(BOARDIOC_INIT, 0);
|
||||
|
||||
#ifdef CONFIG_BOARDCTL_FINALINIT
|
||||
/* Perform architecture-specific final-initialization (if configured) */
|
||||
|
||||
(void)boardctl(BOARDIOC_FINALINIT, 0);
|
||||
boardctl(BOARDIOC_FINALINIT, 0);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -349,9 +349,9 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
/* Use this pts file as stdin, stdout, and stderr */
|
||||
|
||||
(void)dup2(fd_pts, 0);
|
||||
(void)dup2(fd_pts, 1);
|
||||
(void)dup2(fd_pts, 2);
|
||||
dup2(fd_pts, 0);
|
||||
dup2(fd_pts, 1);
|
||||
dup2(fd_pts, 2);
|
||||
|
||||
/* Create a new console using this /dev/pts/N */
|
||||
|
||||
|
@ -173,10 +173,10 @@ static bool pwfb_listener_initialize(FAR struct pwfb_state_s *st)
|
||||
* smoothly.
|
||||
*/
|
||||
|
||||
(void)pthread_attr_init(&attr);
|
||||
pthread_attr_init(&attr);
|
||||
param.sched_priority = CONFIG_EXAMPLES_PWFB_LISTENER_PRIO;
|
||||
(void)pthread_attr_setschedparam(&attr, ¶m);
|
||||
(void)pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_PWFB_LISTENER_STACKSIZE);
|
||||
pthread_attr_setschedparam(&attr, ¶m);
|
||||
pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_PWFB_LISTENER_STACKSIZE);
|
||||
|
||||
ret = pthread_create(&thread, &attr, pwfb_listener, st);
|
||||
if (ret != 0)
|
||||
@ -195,7 +195,7 @@ static bool pwfb_listener_initialize(FAR struct pwfb_state_s *st)
|
||||
* are connected.
|
||||
*/
|
||||
|
||||
(void)sem_wait(&st->semevent);
|
||||
sem_wait(&st->semevent);
|
||||
}
|
||||
|
||||
return true;
|
||||
@ -650,7 +650,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
while (!wstate.haveres)
|
||||
{
|
||||
(void)sem_wait(&wstate.semevent);
|
||||
sem_wait(&wstate.semevent);
|
||||
}
|
||||
|
||||
printf("pwfb_main: Screen resolution (%d,%d)\n",
|
||||
@ -765,7 +765,7 @@ errout_with_cursor:
|
||||
#ifdef CONFIG_NX_SWCURSOR
|
||||
/* Disable the cursor */
|
||||
|
||||
(void)nxcursor_enable(wstate.hnx, false);
|
||||
nxcursor_enable(wstate.hnx, false);
|
||||
|
||||
errout_with_hwnds:
|
||||
#endif
|
||||
|
@ -151,10 +151,10 @@ static bool pwlines_listener_initialize(FAR struct pwlines_state_s *st)
|
||||
* smoothly.
|
||||
*/
|
||||
|
||||
(void)pthread_attr_init(&attr);
|
||||
pthread_attr_init(&attr);
|
||||
param.sched_priority = CONFIG_EXAMPLES_PWLINES_LISTENER_PRIO;
|
||||
(void)pthread_attr_setschedparam(&attr, ¶m);
|
||||
(void)pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_PWLINES_LISTENER_STACKSIZE);
|
||||
pthread_attr_setschedparam(&attr, ¶m);
|
||||
pthread_attr_setstacksize(&attr, CONFIG_EXAMPLES_PWLINES_LISTENER_STACKSIZE);
|
||||
|
||||
ret = pthread_create(&thread, &attr, pwlines_listener, st);
|
||||
if (ret != 0)
|
||||
@ -173,7 +173,7 @@ static bool pwlines_listener_initialize(FAR struct pwlines_state_s *st)
|
||||
* are connected.
|
||||
*/
|
||||
|
||||
(void)sem_wait(&st->semevent);
|
||||
sem_wait(&st->semevent);
|
||||
}
|
||||
|
||||
return true;
|
||||
@ -384,7 +384,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
while (!wstate.haveres)
|
||||
{
|
||||
(void)sem_wait(&wstate.semevent);
|
||||
sem_wait(&wstate.semevent);
|
||||
}
|
||||
|
||||
printf("pwlines_main: Screen resolution (%d,%d)\n",
|
||||
|
@ -125,7 +125,7 @@ int main(int argc, FAR char *argv[])
|
||||
{
|
||||
int errcode = errno;
|
||||
fprintf(stderr, "ERROR: Read from /dev/random failed: %d\n", errcode);
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
@ -133,14 +133,14 @@ int main(int argc, FAR char *argv[])
|
||||
{
|
||||
fprintf(stderr, "ERROR: Read from /dev/random only produced %d bytes\n",
|
||||
(int)nread);
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* Dump the sample buffer */
|
||||
|
||||
lib_dumpbuffer("Random values", (FAR const uint8_t*)buffer, nread);
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,7 @@ int main(int argc, FAR char *argv[])
|
||||
}
|
||||
|
||||
sprintf(buffer, "#%02X%02X%02X", red, green, blue);
|
||||
(void)write(fd, buffer, 8);
|
||||
write(fd, buffer, 8);
|
||||
usleep(5000);
|
||||
}
|
||||
|
||||
|
@ -221,7 +221,7 @@ static void slcd_putc(FAR struct lib_outstream_s *stream, int ch)
|
||||
|
||||
if (stream->nput >= CONFIG_EXAMPLES_SLCD_BUFSIZE)
|
||||
{
|
||||
(void)slcd_flush(stream);
|
||||
slcd_flush(stream);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -492,12 +492,12 @@ int main(int argc, char *argv[])
|
||||
#ifndef CONFIG_NSH_ARCHINIT
|
||||
/* Perform architecture-specific initialization (if configured) */
|
||||
|
||||
(void)boardctl(BOARDIOC_INIT, 0);
|
||||
boardctl(BOARDIOC_INIT, 0);
|
||||
|
||||
#ifdef CONFIG_BOARDCTL_FINALINIT
|
||||
/* Perform architecture-specific final-initialization (if configured) */
|
||||
|
||||
(void)boardctl(BOARDIOC_FINALINIT, 0);
|
||||
boardctl(BOARDIOC_FINALINIT, 0);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -77,7 +77,7 @@ static void modprint(FAR const char *fmt, ...)
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
(void)vsyslog(LOG_INFO, fmt, ap);
|
||||
vsyslog(LOG_INFO, fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
|
@ -108,7 +108,7 @@ static void modprint(FAR const char *fmt, ...)
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
(void)vsyslog(LOG_INFO, fmt, ap);
|
||||
vsyslog(LOG_INFO, fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
#endif
|
||||
|
@ -81,7 +81,7 @@ static void stepusage(void)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
g_mmafter = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&g_mmafter);
|
||||
mallinfo(&g_mmafter);
|
||||
#endif
|
||||
|
||||
/* Show the change from the previous loop */
|
||||
@ -102,7 +102,7 @@ static void endusage(void)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
g_mmafter = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&g_mmafter);
|
||||
mallinfo(&g_mmafter);
|
||||
#endif
|
||||
showusage(&g_mmbefore, &g_mmafter, "End-of-test memory leak");
|
||||
}
|
||||
@ -255,7 +255,7 @@ int main(int argc, FAR char *argv[])
|
||||
g_mmbefore = mallinfo();
|
||||
g_mmprevious = g_mmbefore;
|
||||
#else
|
||||
(void)mallinfo(&g_mmbefore);
|
||||
mallinfo(&g_mmbefore);
|
||||
memcpy(&g_mmprevious, &g_mmbefore, sizeof(struct mallinfo));
|
||||
#endif
|
||||
|
||||
|
@ -144,7 +144,7 @@ void tcpblaster_client(void)
|
||||
partials = 0;
|
||||
totallost = 0;
|
||||
|
||||
(void)clock_gettime(CLOCK_REALTIME, &start);
|
||||
clock_gettime(CLOCK_REALTIME, &start);
|
||||
|
||||
for (; ; )
|
||||
{
|
||||
@ -204,7 +204,7 @@ void tcpblaster_client(void)
|
||||
float fkbrecvd;
|
||||
float felapsed;
|
||||
|
||||
(void)clock_gettime(CLOCK_REALTIME, &curr);
|
||||
clock_gettime(CLOCK_REALTIME, &curr);
|
||||
|
||||
elapsed.tv_sec = curr.tv_sec - start.tv_sec;
|
||||
if (curr.tv_nsec >= start.tv_nsec)
|
||||
@ -237,7 +237,7 @@ void tcpblaster_client(void)
|
||||
partials = 0;
|
||||
totallost = 0;
|
||||
|
||||
(void)clock_gettime(CLOCK_REALTIME, &start);
|
||||
clock_gettime(CLOCK_REALTIME, &start);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -184,7 +184,7 @@ void tcpblaster_server(void)
|
||||
recvcount = 0;
|
||||
recvtotal = 0;
|
||||
|
||||
(void)clock_gettime(CLOCK_REALTIME, &start);
|
||||
clock_gettime(CLOCK_REALTIME, &start);
|
||||
|
||||
for (; ; )
|
||||
{
|
||||
@ -233,7 +233,7 @@ void tcpblaster_server(void)
|
||||
float fkbsent;
|
||||
float felapsed;
|
||||
|
||||
(void)clock_gettime(CLOCK_REALTIME, &curr);
|
||||
clock_gettime(CLOCK_REALTIME, &curr);
|
||||
|
||||
elapsed.tv_sec = curr.tv_sec - start.tv_sec;
|
||||
if (curr.tv_nsec >= start.tv_nsec)
|
||||
@ -255,7 +255,7 @@ void tcpblaster_server(void)
|
||||
recvcount = 0;
|
||||
recvtotal = 0;
|
||||
|
||||
(void)clock_gettime(CLOCK_REALTIME, &start);
|
||||
clock_gettime(CLOCK_REALTIME, &start);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -117,7 +117,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
#if defined(CONFIG_EXAMPLES_TCPBLASTER_LOOPBACK) && defined(CONFIG_SCHED_WAITPID)
|
||||
printf("main: Waiting for the server to exit\n");
|
||||
(void)waitpid(child, &statloc, 0);
|
||||
waitpid(child, &statloc, 0);
|
||||
#endif
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
@ -187,8 +187,8 @@ int main(int argc, FAR char *argv[])
|
||||
act.sa_sigaction = timer_sighandler;
|
||||
act.sa_flags = SA_SIGINFO;
|
||||
|
||||
(void)sigfillset(&act.sa_mask);
|
||||
(void)sigdelset(&act.sa_mask, CONFIG_EXAMPLES_TIMER_SIGNO);
|
||||
sigfillset(&act.sa_mask);
|
||||
sigdelset(&act.sa_mask, CONFIG_EXAMPLES_TIMER_SIGNO);
|
||||
|
||||
ret = sigaction(CONFIG_EXAMPLES_TIMER_SIGNO, &act, NULL);
|
||||
if (ret != OK)
|
||||
@ -258,7 +258,7 @@ int main(int argc, FAR char *argv[])
|
||||
/* Detach the signal handler */
|
||||
|
||||
act.sa_handler = SIG_DFL;
|
||||
(void)sigaction(CONFIG_EXAMPLES_TIMER_SIGNO, &act, NULL);
|
||||
sigaction(CONFIG_EXAMPLES_TIMER_SIGNO, &act, NULL);
|
||||
|
||||
/* Show the timer status before starting */
|
||||
|
||||
|
@ -57,7 +57,7 @@ int main(int argc, FAR char *argv[])
|
||||
#ifdef CONFIG_EXAMPLES_UDP_NETINIT
|
||||
/* Initialize the network */
|
||||
|
||||
(void)udp_netinit();
|
||||
udp_netinit();
|
||||
#endif
|
||||
|
||||
/* Run the server or client, depending upon how we are configured */
|
||||
|
@ -57,7 +57,7 @@ int main(int argc, FAR char *argv[])
|
||||
#ifdef CONFIG_EXAMPLES_UDP_NETINIT
|
||||
/* Initialize the network */
|
||||
|
||||
(void)udp_netinit();
|
||||
udp_netinit();
|
||||
#endif
|
||||
|
||||
/* Run the server or client, depending upon how target1 was configured */
|
||||
|
@ -177,7 +177,7 @@ static int trace_callback(struct usbtrace_s *trace, void *arg)
|
||||
|
||||
static void dumptrace(void)
|
||||
{
|
||||
(void)usbtrace_enumerate(trace_callback, NULL);
|
||||
usbtrace_enumerate(trace_callback, NULL);
|
||||
}
|
||||
#else
|
||||
# define dumptrace()
|
||||
|
@ -557,7 +557,7 @@ static int ufstest_stat(FAR void *volinfo, FAR const char *relpath,
|
||||
if (ret >= 0)
|
||||
{
|
||||
ret = ufstest_fstat(volinfo, openinfo, buf);
|
||||
(void)ufstest_close(volinfo, openinfo);
|
||||
ufstest_close(volinfo, openinfo);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1614,7 +1614,7 @@ static FAR void *delayed_cmd_thread(FAR void *priv)
|
||||
|
||||
usleep(cmd->delay_msec * 1000);
|
||||
|
||||
(void)write(cmd->pipefd, &cmd->cmd, 1);
|
||||
write(cmd->pipefd, &cmd->cmd, 1);
|
||||
|
||||
if (!cmd->delay_msec)
|
||||
sem_post(&cmd->startsem);
|
||||
@ -1718,7 +1718,7 @@ int usrsocktest_daemon_stop(void)
|
||||
next = (void *)sq_next(&item->node);
|
||||
|
||||
pthread_mutex_unlock(&daemon_mutex);
|
||||
(void)pthread_join(item->tid, &retval);
|
||||
pthread_join(item->tid, &retval);
|
||||
pthread_mutex_lock(&daemon_mutex);
|
||||
sq_rem(&item->node, &priv->delayed_cmd_threads);
|
||||
free(item);
|
||||
@ -1881,7 +1881,7 @@ int usrsocktest_daemon_pause_usrsock_handling(bool pause)
|
||||
|
||||
priv->do_not_poll_usrsock = pause;
|
||||
|
||||
(void)write(priv->pipefd[1], &cmd, 1);
|
||||
write(priv->pipefd[1], &cmd, 1);
|
||||
ret = OK;
|
||||
|
||||
pthread_mutex_unlock(&daemon_mutex);
|
||||
@ -1916,7 +1916,7 @@ bool usrsocktest_send_delayed_command(const char cmd, unsigned int delay_msec)
|
||||
delayed_cmd->delay_msec = delay_msec;
|
||||
delayed_cmd->cmd = cmd;
|
||||
delayed_cmd->pipefd = priv->pipefd[1];
|
||||
(void)sem_init(&delayed_cmd->startsem, 0, 0);
|
||||
sem_init(&delayed_cmd->startsem, 0, 0);
|
||||
|
||||
ret = pthread_attr_init(&attr);
|
||||
if (ret != OK)
|
||||
|
@ -100,7 +100,7 @@ static void get_mallinfo(struct mallinfo *mem)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
*mem = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(mem);
|
||||
mallinfo(mem);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -164,7 +164,7 @@ int main(int argc, FAR char *argv[])
|
||||
if (handle)
|
||||
{
|
||||
struct dhcpc_state ds;
|
||||
(void)dhcpc_request(handle, &ds);
|
||||
dhcpc_request(handle, &ds);
|
||||
netlib_set_ipv4addr("eth0", &ds.ipaddr);
|
||||
|
||||
if (ds.netmask.s_addr != 0)
|
||||
|
@ -95,7 +95,7 @@ static char g_iobuffer[512];
|
||||
static void callback(FAR char **buffer, int offset, int datend,
|
||||
FAR int *buflen, FAR void *arg)
|
||||
{
|
||||
(void)write(1, &((*buffer)[offset]), datend - offset);
|
||||
write(1, &((*buffer)[offset]), datend - offset);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -332,7 +332,7 @@ static int xmlrpc_netinit(void)
|
||||
if (handle)
|
||||
{
|
||||
struct dhcpc_state ds;
|
||||
(void)dhcpc_request(handle, &ds);
|
||||
dhcpc_request(handle, &ds);
|
||||
netlib_set_ipv4addr("eth0", &ds.ipaddr);
|
||||
|
||||
if (ds.netmask.s_addr != 0)
|
||||
|
@ -122,8 +122,8 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
/* Wait for a signal */
|
||||
|
||||
(void)sigemptyset(&set);
|
||||
(void)sigaddset(&set, CONFIG_EXAMPLES_ZEROCROSS_SIGNO);
|
||||
sigemptyset(&set);
|
||||
sigaddset(&set, CONFIG_EXAMPLES_ZEROCROSS_SIGNO);
|
||||
ret = sigwaitinfo(&set, &value);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
@ -90,7 +90,7 @@ int flash_eraseall(FAR const char *driver)
|
||||
|
||||
/* Close the block driver */
|
||||
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
@ -217,7 +217,7 @@ static int inifile_read_line(FAR struct inifile_state_s *priv)
|
||||
|
||||
if (priv->nextch != EOF)
|
||||
{
|
||||
(void)inifile_next_line(priv);
|
||||
inifile_next_line(priv);
|
||||
}
|
||||
|
||||
/* And return the number of bytes read (excluding the NUL terminator and
|
||||
|
@ -366,7 +366,7 @@ int mkfatfs(FAR const char *pathname, FAR struct fat_format_s *fmt)
|
||||
errout_with_driver:
|
||||
/* Close the driver */
|
||||
|
||||
(void)close(var.fv_fd);
|
||||
close(var.fv_fd);
|
||||
|
||||
errout:
|
||||
/* Release all allocated memory */
|
||||
|
@ -229,7 +229,7 @@ int mksmartfs(FAR const char *pathname, uint16_t sectorsize)
|
||||
errout_with_driver:
|
||||
/* Close the driver */
|
||||
|
||||
(void)close(fd);
|
||||
close(fd);
|
||||
|
||||
errout:
|
||||
/* Release all allocated memory */
|
||||
|
@ -102,6 +102,6 @@ int passwd_adduser(FAR const char *username, FAR const char *password)
|
||||
ret = OK;
|
||||
|
||||
errout_with_lock:
|
||||
(void)passwd_unlock(sem);
|
||||
passwd_unlock(sem);
|
||||
return ret;
|
||||
}
|
||||
|
@ -111,6 +111,6 @@ int passwd_append(FAR const char *username, FAR const char *password)
|
||||
ret = OK;
|
||||
|
||||
errout_with_stream:
|
||||
(void)fclose(stream);
|
||||
fclose(stream);
|
||||
return ret;
|
||||
}
|
||||
|
@ -298,25 +298,25 @@ int passwd_delete(off_t offset)
|
||||
ret = passwd_copyfile(iobuffer, instream, outstream, SIZE_MAX);
|
||||
|
||||
errout_with_outstream:
|
||||
(void)fclose(outstream);
|
||||
fclose(outstream);
|
||||
|
||||
errout_with_instream:
|
||||
(void)fclose(instream);
|
||||
fclose(instream);
|
||||
|
||||
errout_with_tmpfile:
|
||||
if (ret < 0)
|
||||
{
|
||||
/* Restore the previous /etc/passwd file */
|
||||
|
||||
(void)unlink(CONFIG_FSUTILS_PASSWD_PATH);
|
||||
(void)rename(CONFIG_FSUTILS_PASSWD_PATH ".tmp",
|
||||
CONFIG_FSUTILS_PASSWD_PATH);
|
||||
unlink(CONFIG_FSUTILS_PASSWD_PATH);
|
||||
rename(CONFIG_FSUTILS_PASSWD_PATH ".tmp",
|
||||
CONFIG_FSUTILS_PASSWD_PATH);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Delete the previous /etc/passwd file */
|
||||
|
||||
(void)unlink(CONFIG_FSUTILS_PASSWD_PATH ".tmp");
|
||||
unlink(CONFIG_FSUTILS_PASSWD_PATH ".tmp");
|
||||
}
|
||||
|
||||
errout_with_iobuffer:
|
||||
|
@ -92,6 +92,6 @@ int passwd_deluser(FAR const char *username)
|
||||
ret = passwd_delete(passwd.offset);
|
||||
|
||||
errout_with_lock:
|
||||
(void)passwd_unlock(sem);
|
||||
passwd_unlock(sem);
|
||||
return ret;
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ int passwd_unlock(FAR sem_t *sem)
|
||||
#ifdef CONFIG_FS_NAMED_SEMAPHORES
|
||||
/* Close the named semaphore */
|
||||
|
||||
(void)sem_close(sem);
|
||||
sem_close(sem);
|
||||
#endif
|
||||
|
||||
return OK;
|
||||
|
@ -98,6 +98,6 @@ int passwd_update(FAR const char *username, FAR const char *password)
|
||||
ret = passwd_append(username, password);
|
||||
|
||||
errout_with_lock:
|
||||
(void)passwd_unlock(sem);
|
||||
passwd_unlock(sem);
|
||||
return ret;
|
||||
}
|
||||
|
@ -101,6 +101,6 @@ int passwd_verify(FAR const char *username, FAR const char *password)
|
||||
ret = (strcmp(passwd.encrypted, encrypted) == 0) ? 1 : 0;
|
||||
|
||||
errout_with_lock:
|
||||
(void)passwd_unlock(sem);
|
||||
passwd_unlock(sem);
|
||||
return ret;
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ int ft80x_coproc_waitlogo(int fd)
|
||||
|
||||
/* Wait for a half of a second */
|
||||
|
||||
(void)usleep(HALF_SECOND);
|
||||
usleep(HALF_SECOND);
|
||||
}
|
||||
|
||||
ft80x_err("ERROR: Timed out! Last head/tail = %u/%u\n", head, tail);
|
||||
|
@ -264,8 +264,8 @@ int ft80x_ramcmd_waitfifoempty(int fd)
|
||||
|
||||
/* Block the signal so that it will pend if received asynchronously */
|
||||
|
||||
(void)sigemptyset(&set);
|
||||
(void)sigaddset(&set, CONFIG_GRAPHICS_FT80X_CMDEMPTY_SIGNAL);
|
||||
sigemptyset(&set);
|
||||
sigaddset(&set, CONFIG_GRAPHICS_FT80X_CMDEMPTY_SIGNAL);
|
||||
|
||||
ret = pthread_sigmask(SIG_BLOCK, &set, NULL);
|
||||
if (ret < 0)
|
||||
@ -335,8 +335,8 @@ int ft80x_ramcmd_waitfifoempty(int fd)
|
||||
/* Make sure that the event notification is again disabled */
|
||||
|
||||
notify.enable = false;
|
||||
(void)ioctl(fd, FT80X_IOC_EVENTNOTIFY,
|
||||
(unsigned long)((uintptr_t)¬ify));
|
||||
ioctl(fd, FT80X_IOC_EVENTNOTIFY,
|
||||
(unsigned long)((uintptr_t)¬ify));
|
||||
|
||||
/* Check if the signal was received correctly or if the timeout occurred. */
|
||||
|
||||
@ -353,6 +353,6 @@ int ft80x_ramcmd_waitfifoempty(int fd)
|
||||
}
|
||||
}
|
||||
|
||||
(void)pthread_sigmask(SIG_UNBLOCK, &set, NULL);
|
||||
pthread_sigmask(SIG_UNBLOCK, &set, NULL);
|
||||
return ret;
|
||||
}
|
||||
|
@ -167,8 +167,8 @@ int ft80x_touch_waittag(int fd, uint8_t oldtag)
|
||||
|
||||
/* Block the signal so that it will pend if received asynchronously */
|
||||
|
||||
(void)sigemptyset(&set);
|
||||
(void)sigaddset(&set, CONFIG_GRAPHICS_FT80X_TAG_SIGNAL);
|
||||
sigemptyset(&set);
|
||||
sigaddset(&set, CONFIG_GRAPHICS_FT80X_TAG_SIGNAL);
|
||||
|
||||
ret = pthread_sigmask(SIG_BLOCK, &set, NULL);
|
||||
if (ret < 0)
|
||||
@ -236,8 +236,8 @@ int ft80x_touch_waittag(int fd, uint8_t oldtag)
|
||||
/* Make sure that the event notification is again disabled */
|
||||
|
||||
notify.enable = false;
|
||||
(void)ioctl(fd, FT80X_IOC_EVENTNOTIFY,
|
||||
(unsigned long)((uintptr_t)¬ify));
|
||||
ioctl(fd, FT80X_IOC_EVENTNOTIFY,
|
||||
(unsigned long)((uintptr_t)¬ify));
|
||||
|
||||
/* Check if the signal was received correctly or if the timeout occurred. */
|
||||
|
||||
@ -254,7 +254,7 @@ int ft80x_touch_waittag(int fd, uint8_t oldtag)
|
||||
}
|
||||
}
|
||||
|
||||
(void)pthread_sigmask(SIG_UNBLOCK, &set, NULL);
|
||||
pthread_sigmask(SIG_UNBLOCK, &set, NULL);
|
||||
return tag;
|
||||
}
|
||||
|
||||
|
@ -284,7 +284,7 @@ void CButtonTest::click(void)
|
||||
|
||||
// Then inject the mouse click
|
||||
|
||||
(void)nx_mousein(handle, m_center.x, m_center.y, NX_MOUSE_LEFTBUTTON);
|
||||
nx_mousein(handle, m_center.x, m_center.y, NX_MOUSE_LEFTBUTTON);
|
||||
}
|
||||
|
||||
// The counterpart to click. This simulates a button release through
|
||||
@ -304,7 +304,7 @@ void CButtonTest::release(void)
|
||||
|
||||
// Then inject the mouse click
|
||||
|
||||
(void)nx_mousein(handle, m_center.x, m_center.y, NX_MOUSE_NOBUTTONS);
|
||||
nx_mousein(handle, m_center.x, m_center.y, NX_MOUSE_NOBUTTONS);
|
||||
}
|
||||
|
||||
// Widget events are normally handled in a modal loop.
|
||||
|
@ -102,7 +102,7 @@ static void updateMemoryUsage(unsigned int previous,
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
/* Show the change from the previous time */
|
||||
@ -132,7 +132,7 @@ static void initMemoryUsage(void)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
g_mmInitial = mmcurrent.uordblks;
|
||||
|
@ -255,7 +255,7 @@ void CButtonArrayTest::click(CButtonArray *buttonArray, int column, int row)
|
||||
|
||||
// Then inject the mouse click
|
||||
|
||||
(void)nx_mousein(handle, buttonX, buttonY, NX_MOUSE_LEFTBUTTON);
|
||||
nx_mousein(handle, buttonX, buttonY, NX_MOUSE_LEFTBUTTON);
|
||||
}
|
||||
|
||||
// The counterpart to click. This simulates a button release through
|
||||
@ -284,7 +284,7 @@ void CButtonArrayTest::release(CButtonArray *buttonArray, int column, int row)
|
||||
|
||||
// Then inject the mouse release
|
||||
|
||||
(void)nx_mousein(handle, buttonX, buttonY, NX_MOUSE_NOBUTTONS);
|
||||
nx_mousein(handle, buttonX, buttonY, NX_MOUSE_NOBUTTONS);
|
||||
}
|
||||
|
||||
// Widget events are normally handled in a modal loop.
|
||||
|
@ -93,7 +93,7 @@ static void updateMemoryUsage(unsigned int previous,
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
/* Show the change from the previous time */
|
||||
@ -120,7 +120,7 @@ static void initMemoryUsage(void)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
g_mmInitial = mmcurrent.uordblks;
|
||||
|
@ -249,7 +249,7 @@ void CCheckBoxTest::clickCheckBox(void)
|
||||
|
||||
// Then inject the mouse click
|
||||
|
||||
(void)nx_mousein(handle, checkboxX, checkboxY, NX_MOUSE_LEFTBUTTON);
|
||||
nx_mousein(handle, checkboxX, checkboxY, NX_MOUSE_LEFTBUTTON);
|
||||
|
||||
// Poll for mouse events
|
||||
//
|
||||
@ -262,7 +262,7 @@ void CCheckBoxTest::clickCheckBox(void)
|
||||
|
||||
// Then inject the mouse release
|
||||
|
||||
(void)nx_mousein(handle, checkboxX, checkboxY, 0);
|
||||
nx_mousein(handle, checkboxX, checkboxY, 0);
|
||||
|
||||
// And poll for more mouse events
|
||||
|
||||
|
@ -92,7 +92,7 @@ static void updateMemoryUsage(unsigned int previous,
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
/* Show the change from the previous time */
|
||||
@ -119,7 +119,7 @@ static void initMemoryUsage(void)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
g_mmInitial = mmcurrent.uordblks;
|
||||
|
@ -266,7 +266,7 @@ void CGlyphButtonTest::click(void)
|
||||
|
||||
// Then inject the mouse click
|
||||
|
||||
(void)nx_mousein(handle, m_center.x, m_center.y, NX_MOUSE_LEFTBUTTON);
|
||||
nx_mousein(handle, m_center.x, m_center.y, NX_MOUSE_LEFTBUTTON);
|
||||
}
|
||||
|
||||
// The counterpart to click. This simulates a button release through
|
||||
@ -286,7 +286,7 @@ void CGlyphButtonTest::release(void)
|
||||
|
||||
// Then inject the mouse click
|
||||
|
||||
(void)nx_mousein(handle, m_center.x, m_center.y, NX_MOUSE_NOBUTTONS);
|
||||
nx_mousein(handle, m_center.x, m_center.y, NX_MOUSE_NOBUTTONS);
|
||||
}
|
||||
|
||||
// Widget events are normally handled in a modal loop.
|
||||
|
@ -93,7 +93,7 @@ static void updateMemoryUsage(unsigned int previous,
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
/* Show the change from the previous time */
|
||||
@ -120,7 +120,7 @@ static void initMemoryUsage(void)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
g_mmInitial = mmcurrent.uordblks;
|
||||
|
@ -109,7 +109,7 @@ static void updateMemoryUsage(FAR struct mallinfo *previous,
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
/* Show the change from the previous time */
|
||||
@ -136,7 +136,7 @@ static void initMemoryUsage(void)
|
||||
g_mmInitial = mallinfo();
|
||||
g_mmprevious = g_mmInitial;
|
||||
#else
|
||||
(void)mallinfo(&g_mmInitial);
|
||||
mallinfo(&g_mmInitial);
|
||||
memcpy(&g_mmprevious, &g_mmInitial, sizeof(struct mallinfo));
|
||||
#endif
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ static void updateMemoryUsage(unsigned int previous,
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
/* Show the change from the previous time */
|
||||
@ -122,7 +122,7 @@ static void initMemoryUsage(void)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
g_mmInitial = mmcurrent.uordblks;
|
||||
|
@ -369,7 +369,7 @@ void CKeypadTest::click(CKeypad *keypad, int column, int row)
|
||||
|
||||
// Then inject the mouse click
|
||||
|
||||
(void)nx_mousein(handle, buttonX, buttonY, NX_MOUSE_LEFTBUTTON);
|
||||
nx_mousein(handle, buttonX, buttonY, NX_MOUSE_LEFTBUTTON);
|
||||
}
|
||||
|
||||
// The counterpart to click. This simulates a button release through
|
||||
@ -398,7 +398,7 @@ void CKeypadTest::release(CKeypad *keypad, int column, int row)
|
||||
|
||||
// Then inject the mouse release
|
||||
|
||||
(void)nx_mousein(handle, buttonX, buttonY, NX_MOUSE_NOBUTTONS);
|
||||
nx_mousein(handle, buttonX, buttonY, NX_MOUSE_NOBUTTONS);
|
||||
}
|
||||
|
||||
// Widget events are normally handled in a modal loop.
|
||||
|
@ -285,7 +285,7 @@ void CLatchButtonTest::click(void)
|
||||
|
||||
// Then inject the mouse click
|
||||
|
||||
(void)nx_mousein(handle, m_center.x, m_center.y, NX_MOUSE_LEFTBUTTON);
|
||||
nx_mousein(handle, m_center.x, m_center.y, NX_MOUSE_LEFTBUTTON);
|
||||
}
|
||||
|
||||
// The counterpart to click. This simulates a button release through
|
||||
@ -305,7 +305,7 @@ void CLatchButtonTest::release(void)
|
||||
|
||||
// Then inject the mouse click
|
||||
|
||||
(void)nx_mousein(handle, m_center.x, m_center.y, NX_MOUSE_NOBUTTONS);
|
||||
nx_mousein(handle, m_center.x, m_center.y, NX_MOUSE_NOBUTTONS);
|
||||
}
|
||||
|
||||
// Widget events are normally handled in a modal loop.
|
||||
|
@ -128,7 +128,7 @@ static void updateMemoryUsage(unsigned int previous,
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
/* Show the change from the previous time */
|
||||
@ -158,7 +158,7 @@ static void initMemoryUsage(void)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
g_mmInitial = mmcurrent.uordblks;
|
||||
|
@ -255,7 +255,7 @@ void CLatchButtonArrayTest::click(CLatchButtonArray *buttonArray, int column, in
|
||||
|
||||
// Then inject the mouse click
|
||||
|
||||
(void)nx_mousein(handle, buttonX, buttonY, NX_MOUSE_LEFTBUTTON);
|
||||
nx_mousein(handle, buttonX, buttonY, NX_MOUSE_LEFTBUTTON);
|
||||
}
|
||||
|
||||
// The counterpart to click. This simulates a button release through
|
||||
@ -284,7 +284,7 @@ void CLatchButtonArrayTest::release(CLatchButtonArray *buttonArray, int column,
|
||||
|
||||
// Then inject the mouse release
|
||||
|
||||
(void)nx_mousein(handle, buttonX, buttonY, NX_MOUSE_NOBUTTONS);
|
||||
nx_mousein(handle, buttonX, buttonY, NX_MOUSE_NOBUTTONS);
|
||||
}
|
||||
|
||||
// Widget events are normally handled in a modal loop.
|
||||
|
@ -128,7 +128,7 @@ static void updateMemoryUsage(unsigned int previous,
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
/* Show the change from the previous time */
|
||||
@ -158,7 +158,7 @@ static void initMemoryUsage(void)
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
mmcurrent = mallinfo();
|
||||
#else
|
||||
(void)mallinfo(&mmcurrent);
|
||||
mallinfo(&mmcurrent);
|
||||
#endif
|
||||
|
||||
g_mmInitial = mmcurrent.uordblks;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user