mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
cpukit/libfs/src/ftpfs/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings. Found with GCC's warning -Wunused-paramter.
This commit is contained in:
committed by
Gedare Bloom
parent
8f77869f6d
commit
f17dbb7d4b
@@ -878,6 +878,8 @@ static int rtems_ftpfs_open_data_connection_passive(
|
||||
const struct timeval *timeout
|
||||
)
|
||||
{
|
||||
(void) timeout;
|
||||
|
||||
int rv = 0;
|
||||
rtems_ftpfs_reply reply = RTEMS_FTPFS_REPLY_ERROR;
|
||||
struct sockaddr_in sa;
|
||||
@@ -1030,6 +1032,10 @@ static int rtems_ftpfs_open(
|
||||
mode_t mode
|
||||
)
|
||||
{
|
||||
(void) path;
|
||||
(void) oflag;
|
||||
(void) mode;
|
||||
|
||||
int eno = 0;
|
||||
rtems_ftpfs_entry *e = iop->pathinfo.node_access;
|
||||
rtems_ftpfs_mount_entry *me = iop->pathinfo.mt_entry->fs_info;
|
||||
@@ -1171,6 +1177,9 @@ static int rtems_ftpfs_close(rtems_libio_t *iop)
|
||||
/* Dummy version to let fopen(*,"w") work properly */
|
||||
static int rtems_ftpfs_ftruncate(rtems_libio_t *iop, off_t count)
|
||||
{
|
||||
(void) iop;
|
||||
(void) count;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1268,6 +1277,8 @@ int rtems_ftpfs_initialize(
|
||||
const void *d
|
||||
)
|
||||
{
|
||||
(void) d;
|
||||
|
||||
rtems_ftpfs_mount_entry *me = calloc(1, sizeof(*me));
|
||||
|
||||
/* Mount entry for FTP file system instance */
|
||||
@@ -1370,6 +1381,8 @@ static void rtems_ftpfs_lock_or_unlock(
|
||||
const rtems_filesystem_mount_table_entry_t *mt_entry
|
||||
)
|
||||
{
|
||||
(void) mt_entry;
|
||||
|
||||
/* Do nothing */
|
||||
}
|
||||
|
||||
|
||||
@@ -785,7 +785,9 @@ static ssize_t prepare_data_packet_for_sending (
|
||||
const void *not_used
|
||||
)
|
||||
{
|
||||
(void) force_retransmission;
|
||||
(void) not_used;
|
||||
|
||||
ssize_t len;
|
||||
*send_buf = get_send_buffer_packet (tp, tp->blocknum);
|
||||
|
||||
@@ -834,6 +836,8 @@ static ssize_t prepare_ack_packet_for_sending (
|
||||
const void *path_name
|
||||
)
|
||||
{
|
||||
(void) path_name;
|
||||
|
||||
(void) wait_for_packet_reception;
|
||||
if (!force_retransmission &&
|
||||
tp->blocknum_of_first_packet_of_window - 1 +
|
||||
@@ -894,6 +898,8 @@ static ssize_t prepare_request_packet_for_sending (
|
||||
const void *path_name
|
||||
)
|
||||
{
|
||||
(void) force_retransmission;
|
||||
|
||||
(void) wait_for_packet_reception;
|
||||
ssize_t len;
|
||||
*send_buf = tp->send_buf;
|
||||
|
||||
@@ -432,6 +432,9 @@ static int rtems_tftp_open(
|
||||
mode_t mode
|
||||
)
|
||||
{
|
||||
(void) new_name;
|
||||
(void) mode;
|
||||
|
||||
tftpfs_info_t *fs;
|
||||
char *full_path_name;
|
||||
int err;
|
||||
|
||||
Reference in New Issue
Block a user