remove un neccessary code

This commit is contained in:
lxsang
2018-10-07 14:20:36 +02:00
parent 56408cd6a7
commit 001c26824f
3 changed files with 4 additions and 4 deletions

View File

@ -216,13 +216,13 @@ void set_nonblock(int socket) {
//assert(flags != -1);
fcntl(socket, F_SETFL, flags | O_NONBLOCK);
}
void set_block()
/*void set_block()
{
int flags;
flags = fcntl(socket,F_GETFL,0);
//assert(flags != -1);
fcntl(socket, F_SETFL, flags & (~O_NONBLOCK));
}
}*/
int antd_close(void* src)
{
if(!src) return -1;

View File

@ -65,7 +65,7 @@ typedef struct {
#endif
}config_t;
void set_nonblock(int socket);
void set_block(int socket);
//void set_block(int socket);
int response(void*, const char*);
void ctype(void*,const char*);
void redirect(void*,const char*);