summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZack Rusin <zack@kde.org>2003-02-10 03:14:29 +0000
committerZack Rusin <zack@kde.org>2003-02-10 03:14:29 +0000
commit9ac27f95fecd56e6e1566681c87812a825130adc (patch)
tree655e1c772e424006a8be3224555de3cfe88fb164
parent3d27cbff91a134335f7aaa7b7647a74ee7a02a6f (diff)
Minimal semantic fixes.
-rw-r--r--ChangeLog5
-rw-r--r--doc/dbus-specification.sgml2
-rw-r--r--test/bus-test.c18
3 files changed, 15 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 430b3c89..f3f43bd3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-09 Zack Rusin <zack@kde.org>
+
+ * test/bus-test.c: make_it_compile
+ * doc/dbus-specification.sgml: minimal semantic fix
+
2003-02-06 Anders Carlsson <andersca@codefactory.se>
Release 0.3
diff --git a/doc/dbus-specification.sgml b/doc/dbus-specification.sgml
index 48d8af90..dd1493d9 100644
--- a/doc/dbus-specification.sgml
+++ b/doc/dbus-specification.sgml
@@ -43,7 +43,7 @@
</listitem>
<listitem>
<para>
- D-BUS is <emphasis>low-overhead</emphasis> because it is uses a
+ D-BUS is <emphasis>low-overhead</emphasis> because it uses a
binary protocol, and does not have to convert to and from a text
format such as XML. Because D-BUS is intended for potentially
high-resolution same-machine IPC, not primarily for Internet IPC,
diff --git a/test/bus-test.c b/test/bus-test.c
index 9946d97a..29443c0f 100644
--- a/test/bus-test.c
+++ b/test/bus-test.c
@@ -12,7 +12,7 @@ typedef struct
{
long time;
DBusTimeout *timeout;
-
+
} LoopTimeout;
static DBusList *timeouts;
@@ -22,7 +22,7 @@ get_time (void)
{
struct timeval r;
long time;
-
+
/* Can't use dbus-sysdeps here since that isn't
* available outside of libdbus.
*/
@@ -53,7 +53,7 @@ remove_timeout (DBusTimeout *timeout,
void *data)
{
printf ("remove timeout!\n");
-
+
}
static DBusHandlerResult
@@ -96,9 +96,9 @@ loop_quit (void)
static void
loop_run (void)
{
- running_loop = TRUE;
long start_time = get_time ();
-
+ running_loop = TRUE;
+
/* Horribly inefficient main loop */
while (running_loop)
{
@@ -108,7 +108,7 @@ loop_run (void)
time = get_time ();
_dbus_list_copy (&timeouts, &list_copy);
-
+
link = _dbus_list_get_first_link (&list_copy);
while (link != NULL)
{
@@ -139,7 +139,7 @@ main (int argc,
DBusResultCode result;
DBusMessage *message;
DBusMessageHandler *handler;
-
+
server = dbus_server_listen ("debug:name=test-server", &result);
dbus_server_set_new_connection_function (server,
new_connection_callback,
@@ -157,7 +157,7 @@ main (int argc,
connection = dbus_connection_open ("debug:name=test-server", &result);
dbus_connection_set_timeout_functions (connection,
add_timeout, remove_timeout,
- NULL, NULL);
+ NULL, NULL);
if (connection == NULL)
{
fprintf (stderr, "Failed to connect to server: %s\n",
@@ -173,7 +173,7 @@ main (int argc,
handler = dbus_message_handler_new (message_handler, NULL, NULL);
dbus_connection_add_filter (connection, handler);
-
+
dbus_connection_send_message (connection, message, NULL, NULL);
dbus_message_unref (message);