From 652fb829b166e3ca2275c17faf2ecb07d8d11984 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Thu, 13 Jan 2022 00:28:25 -0500 Subject: [PATCH] format codes --- inc/wiz.h | 2 +- inc/wiz_socket.h | 2 +- src/wiz.c | 8 ++++---- src/wiz_af_inet.c | 2 +- src/wiz_device.c | 2 +- src/wiz_ping.c | 4 ++-- src/wiz_socket.c | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/inc/wiz.h b/inc/wiz.h index 5ef44d5..333b9f0 100644 --- a/inc/wiz.h +++ b/inc/wiz.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/inc/wiz_socket.h b/inc/wiz_socket.h index a643121..4886be0 100644 --- a/inc/wiz_socket.h +++ b/inc/wiz_socket.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/src/wiz.c b/src/wiz.c index ffbf3a4..c8c0c65 100644 --- a/src/wiz.c +++ b/src/wiz.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * @@ -252,9 +252,9 @@ static int wiz_chip_cfg_init(void) return -RT_ERROR; } - struct wiz_NetTimeout_t net_timeout; - net_timeout.retry_cnt=5; - net_timeout.time_100us=20000; + struct wiz_NetTimeout_t net_timeout; + net_timeout.retry_cnt=5; + net_timeout.time_100us=20000; ctlnetwork(CN_SET_TIMEOUT, (void*) &net_timeout); return RT_EOK; diff --git a/src/wiz_af_inet.c b/src/wiz_af_inet.c index 12c85b1..323c8d0 100644 --- a/src/wiz_af_inet.c +++ b/src/wiz_af_inet.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/src/wiz_device.c b/src/wiz_device.c index a4fecd7..d9b6b15 100644 --- a/src/wiz_device.c +++ b/src/wiz_device.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/src/wiz_ping.c b/src/wiz_ping.c index 957b9d8..40f2cb2 100644 --- a/src/wiz_ping.c +++ b/src/wiz_ping.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * @@ -196,7 +196,7 @@ int wiz_ping(struct netdev *netdev, const char *host, size_t data_len, uint32_t rt_kprintf("wiz_ping: pf or pf->skt_ops is RT_NULL.\n"); return -RT_FALSE; } - + hostent = (struct hostent *) pf->netdb_ops->gethostbyname(host); if (hostent == RT_NULL) { diff --git a/src/wiz_socket.c b/src/wiz_socket.c index e41c618..cbf1ce9 100644 --- a/src/wiz_socket.c +++ b/src/wiz_socket.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 *