Skip to content

Commit 53b4bb4

Browse files
author
t123yh
committed
Replace tabs with four spaces.
Signed-off-by: t123yh <[email protected]>
1 parent 4ac6b5d commit 53b4bb4

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/centralserver.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ t_authcode
6767
auth_server_request(t_authresponse * authresponse, const char *request_type, const char *ip, const char *mac,
6868
const char *token, unsigned long long int incoming, unsigned long long int outgoing, unsigned long long int incoming_delta, unsigned long long int outgoing_delta)
6969
{
70-
s_config *config = config_get_config();
70+
s_config *config = config_get_config();
7171
int sockfd;
7272
char buf[MAX_BUF];
7373
char *tmp;
@@ -87,7 +87,7 @@ auth_server_request(t_authresponse * authresponse, const char *request_type, con
8787
memset(buf, 0, sizeof(buf));
8888
safe_token = httpdUrlEncode(token);
8989
if(config -> deltatraffic) {
90-
snprintf(buf, (sizeof(buf) - 1),
90+
snprintf(buf, (sizeof(buf) - 1),
9191
"GET %s%sstage=%s&ip=%s&mac=%s&token=%s&incoming=%llu&outgoing=%llu&incomingdelta=%llu&outgoingdelta=%llu&gw_id=%s HTTP/1.0\r\n"
9292
"User-Agent: WiFiDog %s\r\n"
9393
"Host: %s\r\n"
@@ -102,7 +102,7 @@ auth_server_request(t_authresponse * authresponse, const char *request_type, con
102102
outgoing_delta,
103103
config->gw_id, VERSION, auth_server->authserv_hostname);
104104
} else {
105-
snprintf(buf, (sizeof(buf) - 1),
105+
snprintf(buf, (sizeof(buf) - 1),
106106
"GET %s%sstage=%s&ip=%s&mac=%s&token=%s&incoming=%llu&outgoing=%llu&gw_id=%s HTTP/1.0\r\n"
107107
"User-Agent: WiFiDog %s\r\n"
108108
"Host: %s\r\n"
@@ -112,7 +112,7 @@ auth_server_request(t_authresponse * authresponse, const char *request_type, con
112112
request_type,
113113
ip,
114114
mac, safe_token, incoming, outgoing, config->gw_id, VERSION, auth_server->authserv_hostname);
115-
}
115+
}
116116
free(safe_token);
117117

118118
char *res;

src/client_list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ client_list_add(const char *ip, const char *mac, const char *token)
123123
curclient->mac = safe_strdup(mac);
124124
curclient->token = safe_strdup(token);
125125
curclient->counters.incoming_delta = curclient->counters.outgoing_delta =
126-
curclient->counters.incoming = curclient->counters.incoming_history = curclient->counters.outgoing =
126+
curclient->counters.incoming = curclient->counters.incoming_history = curclient->counters.outgoing =
127127
curclient->counters.outgoing_history = 0;
128128
curclient->counters.last_updated = time(NULL);
129129

src/client_list.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ typedef struct _t_counters {
3939
unsigned long long incoming_history; /**< @brief Incoming data before wifidog restarted*/
4040
unsigned long long outgoing_history; /**< @brief Outgoing data before wifidog restarted*/
4141
/* Delta traffic stats by t123yh */
42-
unsigned long long incoming_delta; /**< @brief Incoming data after last report*/
43-
unsigned long long outgoing_delta; /**< @brief Outgoing data after last report*/
42+
unsigned long long incoming_delta; /**< @brief Incoming data after last report*/
43+
unsigned long long outgoing_delta; /**< @brief Outgoing data after last report*/
4444
time_t last_updated; /**< @brief Last update of the counters */
4545
} t_counters;
4646

src/conf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,8 @@ config_read(const char *filename)
695695

696696
switch (opcode) {
697697
case oDeltaTraffic:
698-
config.deltatraffic = parse_boolean_value(p1);
699-
break;
698+
config.deltatraffic = parse_boolean_value(p1);
699+
break;
700700
case oDaemon:
701701
if (config.daemon == -1 && ((value = parse_boolean_value(p1)) != -1)) {
702702
config.daemon = value;

src/conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ typedef struct {
160160
char *htmlmsgfile; /**< @brief name of the HTML file used for messages */
161161
char *wdctl_sock; /**< @brief wdctl path to socket */
162162
char *internal_sock; /**< @brief internal path to socket */
163-
int deltatraffic; /**< @brief reset each user's traffic (Outgoing and Incoming) value after each Auth operation. */
163+
int deltatraffic; /**< @brief reset each user's traffic (Outgoing and Incoming) value after each Auth operation. */
164164
int daemon; /**< @brief if daemon > 0, use daemon mode */
165165
char *external_interface; /**< @brief External network interface name for
166166
firewall rules */

0 commit comments

Comments
 (0)