X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Ftwin%2Fpbt-client.c;h=48de8160eeee7d1f0877cdc52c13a467c2b4a85a;hp=21ed52441bfddf6dc368d7779d89332e9c6d3931;hb=2914110af0cc490566446f18c929452368121b98;hpb=089d0a6eb769d531129a7cd1061493a1a24b4bef diff --git a/ui/twin/pbt-client.c b/ui/twin/pbt-client.c index 21ed524..48de816 100644 --- a/ui/twin/pbt-client.c +++ b/ui/twin/pbt-client.c @@ -19,7 +19,6 @@ #include "config.h" #endif -#define _GNU_SOURCE #include #include @@ -253,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; @@ -283,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); @@ -293,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);