summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-05-02 13:18:31 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-05-06 13:05:53 +1000
commit1949b1f0f990c7ab171339e20731fe6b17c92d8f (patch)
treee9f3471f62d0ea63918f807e55f63efc990ad21e
parent7b7c45a42d9a46e15109f1cbab460e0b97c53f57 (diff)
downloadpetitboot-1949b1f0f990c7ab171339e20731fe6b17c92d8f.zip
petitboot-1949b1f0f990c7ab171339e20731fe6b17c92d8f.tar.gz
ui: Fix typo: 'deamon' -> 'daemon'
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rw-r--r--ui/ncurses/nc-cui.c8
-rw-r--r--ui/ncurses/nc-cui.h2
-rw-r--r--ui/twin/pbt-client.c8
-rw-r--r--ui/twin/pbt-client.h2
4 files changed, 10 insertions, 10 deletions
diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c
index fb104f3..6888fa7 100644
--- a/ui/ncurses/nc-cui.c
+++ b/ui/ncurses/nc-cui.c
@@ -905,7 +905,7 @@ static struct discover_client_ops cui_client_ops = {
*/
struct cui *cui_init(void* platform_info,
- int (*js_map)(const struct js_event *e), int start_deamon)
+ int (*js_map)(const struct js_event *e), int start_daemon)
{
struct cui *cui;
unsigned int i;
@@ -926,7 +926,7 @@ struct cui *cui_init(void* platform_info,
/* Loop here for scripts that just started the server. */
retry_start:
- for (i = start_deamon ? 2 : 15; i; i--) {
+ for (i = start_daemon ? 2 : 15; i; i--) {
cui->client = discover_client_init(cui->waitset,
&cui_client_ops, cui);
if (cui->client || !i)
@@ -935,10 +935,10 @@ retry_start:
sleep(1);
}
- if (!cui->client && start_deamon) {
+ if (!cui->client && start_daemon) {
int result;
- start_deamon = 0;
+ start_daemon = 0;
result = pb_start_daemon(cui);
diff --git a/ui/ncurses/nc-cui.h b/ui/ncurses/nc-cui.h
index 24a0761..afdb3c8 100644
--- a/ui/ncurses/nc-cui.h
+++ b/ui/ncurses/nc-cui.h
@@ -72,7 +72,7 @@ struct cui {
struct cui *cui_init(void* platform_info,
int (*js_map)(const struct js_event *e),
- int start_deamon);
+ int start_daemon);
struct nc_scr *cui_set_current(struct cui *cui, struct nc_scr *scr);
int cui_run(struct cui *cui);
void cui_item_edit(struct pmenu_item *item);
diff --git a/ui/twin/pbt-client.c b/ui/twin/pbt-client.c
index a4ad0e9..48de816 100644
--- a/ui/twin/pbt-client.c
+++ b/ui/twin/pbt-client.c
@@ -252,7 +252,7 @@ static void pbt_client_destructor(struct pbt_client *client)
}
struct pbt_client *pbt_client_init(enum pbt_twin_backend backend,
- unsigned int width, unsigned int height, int start_deamon)
+ unsigned int width, unsigned int height, int start_daemon)
{
struct pbt_client *pbt_client;
unsigned int i;
@@ -282,7 +282,7 @@ struct pbt_client *pbt_client_init(enum pbt_twin_backend backend,
/* Loop here for scripts that just started the server. */
retry_start:
- for (i = start_deamon ? 2 : 10; i; i--) {
+ for (i = start_daemon ? 2 : 10; i; i--) {
pbt_client->discover_client
= discover_client_init(pbt_client->waitset,
&pbt_client_ops, pbt_client);
@@ -292,10 +292,10 @@ retry_start:
sleep(1);
}
- if (!pbt_client->discover_client && start_deamon) {
+ if (!pbt_client->discover_client && start_daemon) {
int result;
- start_deamon = 0;
+ start_daemon = 0;
result = pb_start_daemon(pbt_client);
diff --git a/ui/twin/pbt-client.h b/ui/twin/pbt-client.h
index 7b9671f..4828457 100644
--- a/ui/twin/pbt-client.h
+++ b/ui/twin/pbt-client.h
@@ -50,7 +50,7 @@ struct pbt_client {
};
struct pbt_client *pbt_client_init(enum pbt_twin_backend backend,
- unsigned int width, unsigned int height, int start_deamon);
+ unsigned int width, unsigned int height, int start_daemon);
void pbt_client_destroy(struct pbt_client *client);
void pbt_client_resize(struct pbt_client *client);
OpenPOWER on IntegriCloud