Skip to content

Commit 9a95d2e

Browse files
committed
CLEANUP: refactored some minor codes.
1 parent 780f610 commit 9a95d2e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

memcached.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13642,7 +13642,7 @@ bool conn_listening(conn *c)
1364213642
static const int REJECTED_CONN_CHK_INTERVAL = 60; /*check interval*/
1364313643
rel_time_t elapsed = get_current_time() - rejected_conn_log_stime;
1364413644
rejected_conn_log_count++;
13645-
if (elapsed > REJECTED_CONN_CHK_INTERVAL){
13645+
if (elapsed > REJECTED_CONN_CHK_INTERVAL) {
1364613646
mc_logger->log(EXTENSION_LOG_INFO, c,
1364713647
"Too many open connections (maxconns) "
1364813648
"(Total %u logs occured during %u secs)\n",

sizes.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33

44
#include "memcached.h"
55

6-
static void display(const char *name, size_t size) {
6+
static void display(const char *name, size_t size)
7+
{
78
printf("%s\t%d\n", name, (int)size);
89
}
910

10-
int main(int argc, char **argv) {
11-
11+
int main(int argc, char **argv)
12+
{
1213
display("Thread stats", sizeof(struct thread_stats));
1314
display("Global stats", sizeof(struct mc_stats));
1415
display("Settings", sizeof(struct settings));
15-
display("Libevent thread",
16-
sizeof(LIBEVENT_THREAD));
16+
display("Libevent thread", sizeof(LIBEVENT_THREAD));
1717
display("Connection", sizeof(conn));
1818

1919
printf("----------------------------------------\n");

0 commit comments

Comments
 (0)