Skip to content

Commit fc9f6dc

Browse files
committed
format codes
1 parent 27ca9e7 commit fc9f6dc

23 files changed

Lines changed: 106 additions & 106 deletions

inc/webnet.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* File : webnet.h
33
* This file is part of RT-Thread RTOS
4-
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
4+
* COPYRIGHT (C) 2006 - 2022, RT-Thread Development Team
55
*
66
* This software is dual-licensed: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License version 2 as
@@ -70,7 +70,7 @@ extern "C" {
7070
#ifndef WEBNET_USING_RANGE
7171
#define WEBNET_USING_RANGE
7272
#endif
73-
73+
7474
#ifndef WEBNET_USING_KEEPALIVE
7575
#define WEBNET_USING_KEEPALIVE
7676
#endif
@@ -81,7 +81,7 @@ extern "C" {
8181

8282
#define WEBNET_VERSION "2.0.3" /* webnet version string */
8383
#define WEBNET_VERSION_NUM 0x20003 /* webnet version number */
84-
#define WEBNET_THREAD_NAME "webnet" /* webnet thread name */
84+
#define WEBNET_THREAD_NAME "webnet" /* webnet thread name */
8585

8686
#define WEBNET_THREAD_STACKSIZE (4 * 1024) /* webnet thread stack size */
8787
#define WEBNET_PRIORITY 20 /* webnet thread priority */

inc/wn_module.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* File : wn_module.h
33
* This file is part of RT-Thread RTOS
4-
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
4+
* COPYRIGHT (C) 2006 - 2022, RT-Thread Development Team
55
*
66
* This software is dual-licensed: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License version 2 as
@@ -37,21 +37,21 @@ extern "C" {
3737
#endif
3838

3939
/* initialization event */
40-
#define WEBNET_EVENT_INIT (1 << 0)
40+
#define WEBNET_EVENT_INIT (1 << 0)
4141
/* map uri request to physical url */
42-
#define WEBNET_EVENT_URI_PHYSICAL (1 << 1)
42+
#define WEBNET_EVENT_URI_PHYSICAL (1 << 1)
4343
/* uri request */
44-
#define WEBNET_EVENT_URI_POST (1 << 2)
44+
#define WEBNET_EVENT_URI_POST (1 << 2)
4545
/* header of response */
46-
#define WEBNET_EVENT_RSP_HEADER (1 << 3)
46+
#define WEBNET_EVENT_RSP_HEADER (1 << 3)
4747
/* file content of response */
48-
#define WEBNET_EVENT_RSP_FILE (1 << 4)
48+
#define WEBNET_EVENT_RSP_FILE (1 << 4)
4949

5050

5151
/* continue other modules */
52-
#define WEBNET_MODULE_CONTINUE 0
52+
#define WEBNET_MODULE_CONTINUE 0
5353
/* this session is finished */
54-
#define WEBNET_MODULE_FINISHED 1
54+
#define WEBNET_MODULE_FINISHED 1
5555

5656
int webnet_module_handle_event(struct webnet_session* session, int event);
5757
int webnet_module_system_dofile(struct webnet_session* session);

inc/wn_request.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* File : wn_request.h
33
* This file is part of RT-Thread RTOS
4-
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
4+
* COPYRIGHT (C) 2006 - 2022, RT-Thread Development Team
55
*
66
* This software is dual-licensed: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License version 2 as
@@ -41,14 +41,14 @@ enum webnet_method
4141
WEBNET_POST,
4242
WEBNET_HEADER,
4343
WEBNET_HEAD,
44-
WEBNET_PUT,
45-
WEBNET_OPTIONS,
46-
WEBNET_PROPFIND,
47-
WEBNET_PROPPATCH,
48-
WEBNET_DELETE,
49-
WEBNET_CONNECT,
50-
WEBNET_MKCOL,
51-
WEBNET_MOVE,
44+
WEBNET_PUT,
45+
WEBNET_OPTIONS,
46+
WEBNET_PROPFIND,
47+
WEBNET_PROPPATCH,
48+
WEBNET_DELETE,
49+
WEBNET_CONNECT,
50+
WEBNET_MKCOL,
51+
WEBNET_MOVE,
5252
WEBNET_SUBSCRIBE,
5353
WEBNET_UNSUBSCRIBE,
5454
WEBNET_NOTIFY,
@@ -92,8 +92,8 @@ struct webnet_request
9292
size_t pos_end;
9393
#endif /* WEBNET_USING_RANGE */
9494
#ifdef WEBNET_USING_DAV
95-
char* depth;
96-
char* destination;
95+
char* depth;
96+
char* destination;
9797
#endif /* WEBNET_USING_DAV */
9898

9999
/* DMR */
@@ -106,7 +106,7 @@ struct webnet_request
106106

107107
/* query information */
108108
char* query;
109-
int query_offset;
109+
int query_offset;
110110
struct webnet_query_item* query_items;
111111
rt_uint16_t query_counter;
112112

inc/wn_session.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* File : wn_session.h
33
* This file is part of RT-Thread RTOS
4-
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
4+
* COPYRIGHT (C) 2006 - 2022, RT-Thread Development Team
55
*
66
* This software is dual-licensed: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License version 2 as
@@ -29,22 +29,22 @@
2929

3030
#ifdef RT_USING_SAL
3131
#include <sys/socket.h>
32-
#else
32+
#else
3333
#include <lwip/sockets.h>
3434
#endif
3535

3636
#ifdef __cplusplus
3737
extern "C" {
3838
#endif
3939

40-
#define WEBNET_SESSION_BUFSZ (4 * 1024)
40+
#define WEBNET_SESSION_BUFSZ (4 * 1024)
4141

4242
/* close session */
43-
#define WEBNET_EVENT_CLOSE (1 << 5)
43+
#define WEBNET_EVENT_CLOSE (1 << 5)
4444
/* read session */
45-
#define WEBNET_EVENT_READ (1 << 6)
45+
#define WEBNET_EVENT_READ (1 << 6)
4646
/* write session */
47-
#define WEBNET_EVENT_WRITE (1 << 7)
47+
#define WEBNET_EVENT_WRITE (1 << 7)
4848

4949

5050
struct webnet_session_ops
@@ -55,11 +55,11 @@ struct webnet_session_ops
5555

5656
enum webnet_session_phase
5757
{
58-
WEB_PHASE_METHOD = 0, /* parse method */
59-
WEB_PHASE_HEADER, /* handle web request header */
60-
WEB_PHASE_QUERY, /* handle web query */
61-
WEB_PHASE_RESPONSE, /* handle web response */
62-
WEB_PHASE_CLOSE, /* to close session */
58+
WEB_PHASE_METHOD = 0, /* parse method */
59+
WEB_PHASE_HEADER, /* handle web request header */
60+
WEB_PHASE_QUERY, /* handle web query */
61+
WEB_PHASE_RESPONSE, /* handle web response */
62+
WEB_PHASE_CLOSE, /* to close session */
6363
};
6464

6565
struct webnet_session
@@ -78,10 +78,10 @@ struct webnet_session
7878
rt_uint16_t buffer_offset;
7979
rt_uint8_t buffer[WEBNET_SESSION_BUFSZ];
8080

81-
/* session phase */
82-
rt_uint32_t session_phase;
81+
/* session phase */
82+
rt_uint32_t session_phase;
8383

84-
rt_uint32_t session_event_mask;
84+
rt_uint32_t session_event_mask;
8585
const struct webnet_session_ops* session_ops;
8686
rt_uint32_t user_data;
8787
};

inc/wn_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* File : wn_utils.c
33
* This file is part of RT-Thread RTOS
4-
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
4+
* COPYRIGHT (C) 2006 - 2022, RT-Thread Development Team
55
*
66
* This software is dual-licensed: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License version 2 as

module/wn_module_alias.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* File : wn_module_alias.c
33
* This file is part of RT-Thread RTOS
4-
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
4+
* COPYRIGHT (C) 2006 - 2022, RT-Thread Development Team
55
*
66
* This software is dual-licensed: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License version 2 as

module/wn_module_asp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* File : wn_module_asp.c
33
* This file is part of RT-Thread RTOS
4-
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
4+
* COPYRIGHT (C) 2006 - 2022, RT-Thread Development Team
55
*
66
* This software is dual-licensed: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License version 2 as
@@ -126,7 +126,7 @@ static void _default_asp_handler(struct webnet_session* session, const char* nam
126126
total = 1024*32;
127127
used = 1024*16;
128128
max_used = 1024*24;
129-
129+
130130
webnet_session_printf(session, "current %d/maximal used %d/total %d", used, max_used, total);
131131
}
132132
else if (strncmp(name, "TICK", 4) == 0)

module/wn_module_auth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* File : wn_module_auth.c
33
* This file is part of RT-Thread RTOS
4-
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
4+
* COPYRIGHT (C) 2006 - 2022, RT-Thread Development Team
55
*
66
* This software is dual-licensed: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License version 2 as

module/wn_module_cgi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* File : wn_module_cgi.c
33
* This file is part of RT-Thread RTOS
4-
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
4+
* COPYRIGHT (C) 2006 - 2022, RT-Thread Development Team
55
*
66
* This software is dual-licensed: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License version 2 as
@@ -33,7 +33,7 @@
3333

3434
#ifdef WEBNET_USING_CGI
3535

36-
#define CGI_ROOT_PATH_MAX 64
36+
#define CGI_ROOT_PATH_MAX 64
3737

3838
static char _cgi_root[CGI_ROOT_PATH_MAX] = {0};
3939
struct webnet_cgi_item

module/wn_module_dav.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* File : wn_module_dav.c
33
* This file is part of RT-Thread RTOS
4-
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
4+
* COPYRIGHT (C) 2006 - 2022, RT-Thread Development Team
55
*
66
* This software is dual-licensed: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License version 2 as

0 commit comments

Comments
 (0)