summaryrefslogtreecommitdiff
path: root/legacy/edbus/src/examples/client.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-12-17 18:24:37 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2012-12-17 18:24:37 +0000
commitf75ffb34fab56376d204ae0b34f3e9f5cd11b79f (patch)
tree49d6525b8464a891cdd04eaa15589e99020ff874 /legacy/edbus/src/examples/client.c
parente53c47bcf08fed5d66bdf350b680551902acb546 (diff)
edbus: Don't use "bool" as a variable name
Using bool as variable name is asking for trouble in C99. If we end up including stdbool.h, this would fail. SVN revision: 81171
Diffstat (limited to '')
-rw-r--r--legacy/edbus/src/examples/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/legacy/edbus/src/examples/client.c b/legacy/edbus/src/examples/client.c
index c1081bb6de..6189e0f0ba 100644
--- a/legacy/edbus/src/examples/client.c
+++ b/legacy/edbus/src/examples/client.c
@@ -43,20 +43,20 @@ static void
43_on_send_bool(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 43_on_send_bool(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
44{ 44{
45 const char *errname, *errmsg; 45 const char *errname, *errmsg;
46 Eina_Bool bool; 46 Eina_Bool b;
47 if (edbus_message_error_get(msg, &errname, &errmsg)) 47 if (edbus_message_error_get(msg, &errname, &errmsg))
48 { 48 {
49 fprintf(stderr, "Error: %s %s\n", errname, errmsg); 49 fprintf(stderr, "Error: %s %s\n", errname, errmsg);
50 return; 50 return;
51 } 51 }
52 52
53 if (!edbus_message_arguments_get(msg, "b", &bool)) 53 if (!edbus_message_arguments_get(msg, "b", &b))
54 { 54 {
55 fprintf(stderr, "Error: could not get entry contents\n"); 55 fprintf(stderr, "Error: could not get entry contents\n");
56 return; 56 return;
57 } 57 }
58 58
59 if (bool != bool_value) printf("Error on bool\n"); 59 if (b != bool_value) printf("Error on bool\n");
60 else test(); 60 else test();
61} 61}
62 62