mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
treewide: improve maintaince
General revisions to maintain code (no functional changes intended). Removed unnecessary linked-list length checks. Fixed some typos on function names / comments. Changed how test_storage forces SEGV due to new compiler warnings. Signed-off-by: Ian Clowes <clowes_ian@hotmail.com>
This commit is contained in:
parent
6bf9b6df9a
commit
9187665f8e
8 changed files with 50 additions and 69 deletions
|
|
@ -56,10 +56,12 @@ static void client_notify_write(struct ustream *s, int bytes) {
|
|||
return;
|
||||
}
|
||||
|
||||
static void client_notify_state(struct ustream *s) {
|
||||
struct client *cl = container_of(s,
|
||||
struct client, s.stream);
|
||||
|
||||
// FIXME: This void function tries to return a value sometimes...
|
||||
static void client_notify_state(struct ustream *s) {
|
||||
dawnlog_debug_func("Entering...");
|
||||
|
||||
struct client *cl = container_of(s, struct client, s.stream);
|
||||
if (!s->eof)
|
||||
return;
|
||||
|
||||
|
|
@ -71,8 +73,7 @@ static void client_notify_state(struct ustream *s) {
|
|||
}
|
||||
|
||||
static void client_to_server_close(struct ustream *s) {
|
||||
struct network_con_s *con = container_of(s,
|
||||
struct network_con_s, stream.stream);
|
||||
struct network_con_s *con = container_of(s, struct network_con_s, stream.stream);
|
||||
|
||||
dawnlog_debug_func("Entering...");
|
||||
|
||||
|
|
@ -87,8 +88,7 @@ static void client_to_server_close(struct ustream *s) {
|
|||
}
|
||||
|
||||
static void client_to_server_state(struct ustream *s) {
|
||||
struct client *cl = container_of(s,
|
||||
struct client, s.stream);
|
||||
struct client *cl = container_of(s, struct client, s.stream);
|
||||
|
||||
dawnlog_debug_func("Entering...");
|
||||
|
||||
|
|
@ -289,7 +289,7 @@ static void connect_cb(struct uloop_fd *f, unsigned int events) {
|
|||
entry->connected = 1;
|
||||
}
|
||||
|
||||
int add_tcp_conncection(char *ipv4, int port) {
|
||||
int add_tcp_connection(char *ipv4, int port) {
|
||||
struct sockaddr_in serv_addr;
|
||||
|
||||
dawnlog_debug_func("Entering...");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue