Skip to content

Commit

Permalink
net: lib: download_client: Fix typo in download_client
Browse files Browse the repository at this point in the history
Finnished -> finished

Signed-off-by: Kamil Krzyzanowski <[email protected]>
  • Loading branch information
kamnxt authored and rlubos committed Jan 29, 2024
1 parent 7055f25 commit 7e19044
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/net/download_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ struct download_client {
DOWNLOAD_CLIENT_IDLE,
DOWNLOAD_CLIENT_CONNECTING,
DOWNLOAD_CLIENT_DOWNLOADING,
DOWNLOAD_CLIENT_FINNISHED,
DOWNLOAD_CLIENT_FINISHED,
DOWNLOAD_CLIENT_CLOSING
} state;
};
Expand Down Expand Up @@ -338,7 +338,7 @@ int download_client_disconnect(struct download_client *client);
* separate calls to download_client_set_host(), download_client_start()
* and download_client_disconnect().
*
* Downloads are handled one at a time. If previous download is not finnished
* Downloads are handled one at a time. If previous download is not finished
* this returns -EALREADY.
*
* The download is carried out in fragments of up to
Expand Down
4 changes: 2 additions & 2 deletions subsys/net/lib/download_client/src/download_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static bool is_finished(struct download_client *client)
bool ret;

k_mutex_lock(&client->mutex, K_FOREVER);
ret = client->state == DOWNLOAD_CLIENT_FINNISHED;
ret = client->state == DOWNLOAD_CLIENT_FINISHED;
k_mutex_unlock(&client->mutex);
return ret;
}
Expand Down Expand Up @@ -890,7 +890,7 @@ void download_thread(void *client, void *a, void *b)
if (dl->close_when_done) {
set_state(dl, DOWNLOAD_CLIENT_CLOSING);
} else {
set_state(dl, DOWNLOAD_CLIENT_FINNISHED);
set_state(dl, DOWNLOAD_CLIENT_FINISHED);
}
}

Expand Down

0 comments on commit 7e19044

Please sign in to comment.