From 39bdf9904f7065b96a24874f64a883cdb518ee1b Mon Sep 17 00:00:00 2001 From: Michael Ortmann <41313082+michaelortmann@users.noreply.github.com> Date: Mon, 8 Jul 2024 01:30:54 +0200 Subject: [PATCH] Cleanup: tab -> whitespace --- src/dns.c | 2 +- src/flags.c | 6 +++--- src/mod/python.mod/pymod.h | 4 ++-- src/mod/server.mod/servmsg.c | 2 +- src/mod/uptime.mod/uptime.c | 2 +- src/tcl.c | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/dns.c b/src/dns.c index 69b3a03e5..134c7ac53 100644 --- a/src/dns.c +++ b/src/dns.c @@ -549,7 +549,7 @@ void *thread_dns_ipbyhost(void *arg) addr->family = res->ai_family; addr->addrlen = res->ai_addrlen; memcpy(&addr->addr.sa, res->ai_addr, res->ai_addrlen); - error = 0; + error = 0; *dtn->strerror = 0; break; } diff --git a/src/flags.c b/src/flags.c index b7bb0bd86..9c47be3fa 100644 --- a/src/flags.c +++ b/src/flags.c @@ -280,7 +280,7 @@ int sanity_check(int atr) * Wanted attributes (pls_atr) take precedence over existing (atr) attributes * which can cause conflict. * Arguments are: pointer to old attr (to modify attr to save), - * attr to add, attr to remove + * attr to add, attr to remove * Returns: int with number corresponding to zero or more messages */ int user_sanity_check(int * const atr, int const pls_atr, int const min_atr) @@ -530,7 +530,7 @@ int user_sanity_check(int * const atr, int const pls_atr, int const min_atr) * Wanted attributes (pls_atr) take precedence over existing (atr) attributes * which can cause conflict. * Arguments are: pointer to old attr (to modify attr to save), - * attr to add, attr to remove, user attr + * attr to add, attr to remove, user attr * Returns: int with number corresponding to zero or more messages */ int chan_sanity_check(int * const atr, int const pls_atr, int const min_atr, int const usr_atr) @@ -748,7 +748,7 @@ int chan_sanity_check(int * const atr, int const pls_atr, int const min_atr, int * Wanted attributes (pls_atr) take precedence over existing (atr) attributes * which can cause conflict. * Arguments are: pointer to old attr (to modify attr to save), - * attr to add, attr to remove + * attr to add, attr to remove * Returns: int with number corresponding to zero or more messages */ int bot_sanity_check(intptr_t * const atr, intptr_t const pls_atr, intptr_t const min_atr) diff --git a/src/mod/python.mod/pymod.h b/src/mod/python.mod/pymod.h index 5d3ae0fd5..442846fe8 100644 --- a/src/mod/python.mod/pymod.h +++ b/src/mod/python.mod/pymod.h @@ -1,4 +1,4 @@ -#define APIDEF_METHOD(symbol) static PyObject * api_##symbol(PyObject *self, PyObject *args) -#define APIDEF_KWMETHOD(symbol) static PyObject * api_##symbol(PyObject *self, PyObject *args, PyObject *kw) +#define APIDEF_METHOD(symbol) static PyObject * api_##symbol(PyObject *self, PyObject *args) +#define APIDEF_KWMETHOD(symbol) static PyObject * api_##symbol(PyObject *self, PyObject *args, PyObject *kw) #undef putserv diff --git a/src/mod/server.mod/servmsg.c b/src/mod/server.mod/servmsg.c index 91a50e2e9..c0e048a2b 100644 --- a/src/mod/server.mod/servmsg.c +++ b/src/mod/server.mod/servmsg.c @@ -21,7 +21,7 @@ */ #undef answer /* before resolv.h because it could collide with src/mod/module.h - (dietlibc) */ + * (dietlibc) */ #include /* base64 encode b64_ntop() and base64 decode b64_pton() */ #include #ifdef TLS diff --git a/src/mod/uptime.mod/uptime.c b/src/mod/uptime.mod/uptime.c index de75b2c21..cddc1c8eb 100644 --- a/src/mod/uptime.mod/uptime.c +++ b/src/mod/uptime.mod/uptime.c @@ -186,7 +186,7 @@ static int send_uptime(void) uptimecount++; upPack.packets_sent = htonl(uptimecount); /* Tell the server how many - uptime packets we've sent. */ + * uptime packets we've sent. */ upPack.now2 = htonl(time(NULL)); upPack.ontime = 0; diff --git a/src/tcl.c b/src/tcl.c index 64409ee25..5bc135b35 100644 --- a/src/tcl.c +++ b/src/tcl.c @@ -224,7 +224,7 @@ static char *tcl_eggint(ClientData cdata, Tcl_Interp *irp, default_uflags = fr.udef_global; } else if ((int *) ii->var == &userfile_perm) { - p = strtol(s, &endptr, 8); + p = strtol(s, &endptr, 8); if ((p < 01) || (p > 0777) || (*endptr)) return "Invalid userfile permissions, must be octal between 01 and 0777"; userfile_perm = p;