Skip to content

Commit 53efd71

Browse files
xiaoxiang781216Ouss4
authored andcommitted
Fix format warn (#13)
* fix warning: format '%u' expects argument of type 'unsigned int *', but argument 3 has type 'uint16_t * Change-Id: I3eccf8e2cd917f19b7a9edab233b327297d74bb7 Signed-off-by: Xiang Xiao <[email protected]> * fix warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' Change-Id: Ic59a1e9e49256637fa73459c46b8cded036cf971 Signed-off-by: Xiang Xiao <[email protected]>
1 parent 9211318 commit 53efd71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

netutils/ftpc/ftpc_transfer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static int ftp_cmd_epsv(FAR struct ftpc_session_s *session,
139139
* are supplied.
140140
*/
141141

142-
nscan = sscanf(ptr, "|||%u|", &tmp);
142+
nscan = sscanf(ptr, "|||%hu|", &tmp);
143143
if (nscan != 1)
144144
{
145145
nwarn("WARNING: Error parsing EPSV reply: '%s'\n", session->reply);

system/ping6/ping6.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static void ping6_result(FAR const struct ping6_result_s *result)
172172
case ICMPv6_I_ROUNDTRIP:
173173
inet_ntop(AF_INET6, result->dest.s6_addr16, strbuffer,
174174
INET6_ADDRSTRLEN);
175-
printf("%ld bytes from %s icmp_seq=%u time=%u ms\n",
175+
printf("%u bytes from %s icmp_seq=%u time=%u ms\n",
176176
result->info->datalen, strbuffer, result->seqno,
177177
result->extra);
178178
break;

0 commit comments

Comments
 (0)