diff options
author | Erik Ekman <yarrick@kryo.se> | 2010-03-01 20:59:57 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-01 22:20:36 +0100 |
commit | 61e34acf89ec194e59ecd273a6ae619a63a77b3c (patch) | |
tree | e53d6ba9fba8b2d4ecb31886d47b64da1bac4db5 /src/host/osmocon/osmocon.c | |
parent | a9d6fb651881403df82983b0e92cedffa1fb472b (diff) |
Fix three more warnings
Diffstat (limited to 'src/host/osmocon/osmocon.c')
-rw-r--r-- | src/host/osmocon/osmocon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c index 203e1807..381e40b6 100644 --- a/src/host/osmocon/osmocon.c +++ b/src/host/osmocon/osmocon.c @@ -145,7 +145,7 @@ int read_file(const char *filename) { int fd, rc, i; struct stat st; - const uint8_t *hdr; + const uint8_t *hdr = NULL; int hdr_len = 0; uint8_t *file_data; uint16_t tot_len; @@ -446,6 +446,7 @@ static int serial_read(struct bsc_fd *fd, unsigned int flags) if (rc == 1) dnload.state = WAITING_PROMPT1; } + return 0; } static int parse_mode(const char *arg) @@ -542,6 +543,7 @@ static int un_layer2_accept(struct bsc_fd *fd, unsigned int flags) } llist_add(&con->entry, &connections); + return 0; } /* |