Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup: tab -> whitespace #1639

Merged
merged 1 commit into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions src/flags.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/mod/python.mod/pymod.h
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/mod/server.mod/servmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

#undef answer /* before resolv.h because it could collide with src/mod/module.h
(dietlibc) */
* (dietlibc) */
#include <resolv.h> /* base64 encode b64_ntop() and base64 decode b64_pton() */
#include <string.h>
#ifdef TLS
Expand Down
2 changes: 1 addition & 1 deletion src/mod/uptime.mod/uptime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/tcl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down