Skip to content

Commit 7e19044

Browse files
kamnxtrlubos
authored andcommitted
net: lib: download_client: Fix typo in download_client
Finnished -> finished Signed-off-by: Kamil Krzyzanowski <[email protected]>
1 parent 7055f25 commit 7e19044

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/net/download_client.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ struct download_client {
223223
DOWNLOAD_CLIENT_IDLE,
224224
DOWNLOAD_CLIENT_CONNECTING,
225225
DOWNLOAD_CLIENT_DOWNLOADING,
226-
DOWNLOAD_CLIENT_FINNISHED,
226+
DOWNLOAD_CLIENT_FINISHED,
227227
DOWNLOAD_CLIENT_CLOSING
228228
} state;
229229
};
@@ -338,7 +338,7 @@ int download_client_disconnect(struct download_client *client);
338338
* separate calls to download_client_set_host(), download_client_start()
339339
* and download_client_disconnect().
340340
*
341-
* Downloads are handled one at a time. If previous download is not finnished
341+
* Downloads are handled one at a time. If previous download is not finished
342342
* this returns -EALREADY.
343343
*
344344
* The download is carried out in fragments of up to

subsys/net/lib/download_client/src/download_client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static bool is_finished(struct download_client *client)
9191
bool ret;
9292

9393
k_mutex_lock(&client->mutex, K_FOREVER);
94-
ret = client->state == DOWNLOAD_CLIENT_FINNISHED;
94+
ret = client->state == DOWNLOAD_CLIENT_FINISHED;
9595
k_mutex_unlock(&client->mutex);
9696
return ret;
9797
}
@@ -890,7 +890,7 @@ void download_thread(void *client, void *a, void *b)
890890
if (dl->close_when_done) {
891891
set_state(dl, DOWNLOAD_CLIENT_CLOSING);
892892
} else {
893-
set_state(dl, DOWNLOAD_CLIENT_FINNISHED);
893+
set_state(dl, DOWNLOAD_CLIENT_FINISHED);
894894
}
895895
}
896896

0 commit comments

Comments
 (0)