mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
apps/netutils/ftpc: ix the compiler warnings:
ftpc_transfer.c:652:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
FAR struct ftpc_session_s *session = (FAR struct ftpc_session_s *)arg1;
^
ftpc_getreply.c: In function 'fptc_getreply': ftpc_getreply.c:218:58:
warning: passing argument 3 of 'wd_start' from incompatible pointer type [-Wincompatible-pointer-types]
ret = wd_start(session->wdog, session->replytimeo, ftpc_timeout, 1, session);
^~~~~~~~~~~~
In file included from
/workspace/mirtos/out/sim/miai/mirtos/nuttx/include/nuttx/sched.h:56:0,
from /workspace/mirtos/out/sim/miai/mirtos/nuttx/include/sched.h:49,
from /workspace/mirtos/out/sim/miai/mirtos/nuttx/include/stdio.h:48,
from ftpc_internal.h:48,
from ftpc_getreply.c:46: /workspace/mirtos/out/sim/miai/mirtos/nuttx/include/nuttx/wdog.h:247:5: note: expected 'wdentry_t {aka void
(*)(int, long long unsigned int)}' but argument is of type 'void (*)(int, uint32_t) {aka void (*)(int, unsigned int)}'
int wd_start(WDOG_ID wdog, int32_t delay, wdentry_t wdentry, int argc, ...);
^~~~~~~~
This commit is contained in:
parent
ee53a90fa5
commit
3bf17d602e
2 changed files with 2 additions and 2 deletions
|
|
@ -265,7 +265,7 @@ EXTERN void ftpc_sockcopy(FAR struct ftpc_socket_s *dest,
|
|||
/* Socket I/O helpers */
|
||||
|
||||
EXTERN int ftpc_sockprintf(FAR struct ftpc_socket_s *sock, const char *fmt, ...);
|
||||
EXTERN void ftpc_timeout(int argc, uint32_t arg1, ...);
|
||||
EXTERN void ftpc_timeout(int argc, wdparm_t arg1, ...);
|
||||
|
||||
/* Transfer helpers */
|
||||
|
||||
|
|
|
|||
|
|
@ -647,7 +647,7 @@ int ftpc_xfrabort(FAR struct ftpc_session_s *session, FAR FILE *stream)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void ftpc_timeout(int argc, uint32_t arg1, ...)
|
||||
void ftpc_timeout(int argc, wdparm_t arg1, ...)
|
||||
{
|
||||
FAR struct ftpc_session_s *session = (FAR struct ftpc_session_s *)arg1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue