Minor changes (tabs, ident, coding style...)

This commit is contained in:
fbernon
2007-08-17 00:30:27 +00:00
parent c517f6daf9
commit 2be122875a
7 changed files with 27 additions and 26 deletions

View File

@@ -503,12 +503,12 @@ mem_malloc(mem_size_t size)
void *mem_calloc(size_t count, size_t size)
{
void *p;
void *p;
p = mem_malloc(count * size);
if(p) {
memset(p, 0, count * size);
}
return p;
p = mem_malloc(count * size);
if(p) {
memset(p, 0, count * size);
}
return p;
}
#endif /* !MEM_LIBC_MALLOC */

View File

@@ -301,8 +301,9 @@ tcp_input(struct pbuf *p, struct netif *inp)
}
if (recv_data != NULL) {
if(flags & TCP_PSH)
recv_data->flgs |= PBUF_FLAG_PUSH;
if(flags & TCP_PSH) {
recv_data->flgs |= PBUF_FLAG_PUSH;
}
/* Notify application that data has been received. */
TCP_EVENT_RECV(pcb, recv_data, ERR_OK, err);
}