Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterywolf committed Jul 29, 2022
1 parent b3329e3 commit acb1e56
Show file tree
Hide file tree
Showing 22 changed files with 6 additions and 26 deletions.
20 changes: 0 additions & 20 deletions CHANGELOG

This file was deleted.

6 changes: 3 additions & 3 deletions SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ src = []
inc = []

# add librws common include
inc = inc + [cwd + '/librws/inc']
inc = inc + [cwd + '/inc']

# add librws basic code
src = src + Glob('librws/src/*.c')
src = src + Glob('src/*.c')

# add group to IDE project
objs = DefineGroup('librws_rtthread', src, depend = ['PKG_USING_LIBRWS', 'RT_USING_PTHREADS'], CPPPATH = inc)
objs = DefineGroup('librws', src, depend = ['PKG_USING_LIBRWS', 'RT_USING_PTHREADS'], CPPPATH = inc)

# traversal subscript
list = os.listdir(cwd)
Expand Down
2 changes: 1 addition & 1 deletion examples/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inc = []
inc = inc + [cwd]

# add librws basic code
src = src + Glob('./*.c')
src = src + Glob('*.c')

# add group to IDE project
objs = DefineGroup('librws_example', src, depend = ['LIBRWS_USING_EXAMPLE'], CPPPATH = inc)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions librws/src/rws_socketpriv.c → src/rws_socketpriv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1519,8 +1519,8 @@ void rws_socket_check_write_error(_rws_socket *s, int error_num)
// send errors
case EACCES: //

// case EAGAIN: // The socket is marked nonblocking and the requested operation would block
// case EWOULDBLOCK: // The socket is marked nonblocking and the receive operation would block
// case EAGAIN: // The socket is marked nonblocking and the requested operation would block
// case EWOULDBLOCK: // The socket is marked nonblocking and the receive operation would block

case EBADF: // An invalid descriptor was specified
case ECONNRESET: // Connection reset by peer
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit acb1e56

Please sign in to comment.