mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 11:08:34 +08:00
format code
This commit is contained in:
parent
4a1a8d1cb4
commit
33a342e8fb
@ -82,7 +82,6 @@ static ret_t date_time_get_now_impl(date_time_t* dt) {
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
uint64_t stm_now_ms();
|
uint64_t stm_now_ms();
|
||||||
void stm_time_init(void);
|
void stm_time_init(void);
|
||||||
|
|
||||||
|
@ -34,7 +34,9 @@ static int32_t tk_istream_tcp_read(tk_istream_t* stream, uint8_t* buff, uint32_t
|
|||||||
ret = recv(istream_tcp->sock, buff, max_size, 0);
|
ret = recv(istream_tcp->sock, buff, max_size, 0);
|
||||||
if (ret <= 0) {
|
if (ret <= 0) {
|
||||||
if (errno != EAGAIN) {
|
if (errno != EAGAIN) {
|
||||||
|
if (errno != 0) {
|
||||||
perror("recv");
|
perror("recv");
|
||||||
|
}
|
||||||
istream_tcp->is_broken = TRUE;
|
istream_tcp->is_broken = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
|
|
||||||
BEGIN_C_DECLS
|
BEGIN_C_DECLS
|
||||||
|
|
||||||
|
|
||||||
typedef ret_t (*event_source_manager_dispatch_t)(event_source_manager_t* manager);
|
typedef ret_t (*event_source_manager_dispatch_t)(event_source_manager_t* manager);
|
||||||
typedef ret_t (*event_source_manager_destroy_t)(event_source_manager_t* manager);
|
typedef ret_t (*event_source_manager_destroy_t)(event_source_manager_t* manager);
|
||||||
|
|
||||||
|
@ -361,5 +361,4 @@ typedef struct _event_source_t event_source_t;
|
|||||||
struct _event_source_manager_t;
|
struct _event_source_manager_t;
|
||||||
typedef struct _event_source_manager_t event_source_manager_t;
|
typedef struct _event_source_manager_t event_source_manager_t;
|
||||||
|
|
||||||
|
|
||||||
#endif /*TYPES_DEF_H*/
|
#endif /*TYPES_DEF_H*/
|
||||||
|
Loading…
Reference in New Issue
Block a user