diff mbox

[1/3] ui/ncurses: Fix typo: 'deamon' -> 'daemon'

Message ID 1462170774-16407-1-git-send-email-sam@mendozajonas.com
State Accepted
Headers show

Commit Message

samjonas May 2, 2016, 6:32 a.m. UTC
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
---
 ui/ncurses/nc-cui.c | 8 ++++----
 ui/ncurses/nc-cui.h | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

Comments

Andrew Donnellan May 4, 2016, 5:27 a.m. UTC | #1
On 02/05/16 16:32, Samuel Mendoza-Jonas wrote:
> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
> ---
>   ui/ncurses/nc-cui.c | 8 ++++----
>   ui/ncurses/nc-cui.h | 2 +-
>   2 files changed, 5 insertions(+), 5 deletions(-)

There's also a few occurrences in ui/twin/pbt-client.{c,h} that should 
be fixed.
diff mbox

Patch

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);