Skip to content
Snippets Groups Projects
Commit 94fea2a1 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

defined USE_NONBLOCK for now... need to implement configure detection.

rewrote sockbuf_buf_init macro not to expand its argument multiple times.
parent 984bdfa6
No related branches found
No related tags found
No related merge requests found
......@@ -564,6 +564,7 @@ int lber_pvt_sb_set_readahead( Sockbuf *sb, int rh )
return 0;
}
#define USE_NONBLOCK
#ifdef USE_NONBLOCK
int lber_pvt_sb_set_nonblock( Sockbuf *sb, int nb )
{
......@@ -589,11 +590,13 @@ int lber_pvt_sb_set_nonblock( Sockbuf *sb, int nb )
}
#endif
#define sockbuf_buf_init( bb ) \
(bb)->buf_base=NULL;\
(bb)->buf_ptr = 0;\
(bb)->buf_end = 0;\
(bb)->buf_size = 0;
#define sockbuf_buf_init( bb ) do { \
Sockbuf_Buf *sbb = (bb); \
sbb->buf_base = NULL; \
sbb->buf_ptr = 0; \
sbb->buf_end = 0; \
sbb->buf_size = 0; \
} while(0)
static int
sockbuf_buf_destroy( Sockbuf_Buf *buf )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment