diff options
author | stijn <stijn@ignitron.net> | 2020-04-16 09:13:57 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-04-23 11:24:25 +1000 |
commit | 84fa3312cfa7d2237d4b56952f2cd6e3591210c4 (patch) | |
tree | dc2b3e67bad9969fc5792ca0822798d58addf174 /ports/unix/modusocket.c | |
parent | d6243568a05d423b58522435c3779975acbf56dd (diff) |
all: Format code to add space after C++-style comment start.
Note: the uncrustify configuration is explicitly set to 'add' instead of
'force' in order not to alter the comments which use extra spaces after //
as a means of indenting text for clarity.
Diffstat (limited to 'ports/unix/modusocket.c')
-rw-r--r-- | ports/unix/modusocket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/unix/modusocket.c b/ports/unix/modusocket.c index 248d721ed..1c9ef3362 100644 --- a/ports/unix/modusocket.c +++ b/ports/unix/modusocket.c @@ -211,7 +211,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_2(socket_listen_obj, socket_listen); STATIC mp_obj_t socket_accept(mp_obj_t self_in) { mp_obj_socket_t *self = MP_OBJ_TO_PTR(self_in); // sockaddr_storage isn't stack-friendly (129 bytes or so) - //struct sockaddr_storage addr; + // struct sockaddr_storage addr; byte addr[32]; socklen_t addr_len = sizeof(addr); int fd; @@ -547,7 +547,7 @@ STATIC mp_obj_t mod_socket_getaddrinfo(size_t n_args, const mp_obj_t *args) { #ifdef __UCLIBC_MAJOR__ #if __UCLIBC_MAJOR__ == 0 && (__UCLIBC_MINOR__ < 9 || (__UCLIBC_MINOR__ == 9 && __UCLIBC_SUBLEVEL__ <= 32)) // "warning" requires -Wno-cpp which is a relatively new gcc option, so we choose not to use it. -//#warning Working around uClibc bug with numeric service name +// #warning Working around uClibc bug with numeric service name // Older versions og uClibc have bugs when numeric ports in service // arg require also hints.ai_socktype (or hints.ai_protocol) != 0 // This actually was fixed in 0.9.32.1, but uClibc doesn't allow to |