summaryrefslogtreecommitdiffstats
path: root/serial
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-01-28 10:38:40 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-01-28 10:38:40 +0000
commitba255beb79afb9c00ae5b71821f84f911aa8d1fe (patch)
tree66707895eb4596df0e8054052f95f07560927e2f /serial
parentd352bd04383f1c1a5ec17e267cb8d0ce70720519 (diff)
Whitespace cleanup
Diffstat (limited to 'serial')
-rw-r--r--serial/manager.c8
-rw-r--r--serial/port.c2
-rw-r--r--serial/serial-api.txt2
3 files changed, 6 insertions, 6 deletions
diff --git a/serial/manager.c b/serial/manager.c
index b33e30ac..2bbb5999 100644
--- a/serial/manager.c
+++ b/serial/manager.c
@@ -64,7 +64,7 @@
#define BUF_SIZE 1024
/* Waiting for udev to create the device node */
-#define MAX_OPEN_TRIES 5
+#define MAX_OPEN_TRIES 5
#define OPEN_WAIT 300 /* ms */
struct pending_connect {
@@ -80,7 +80,7 @@ struct pending_connect {
char *dev; /* tty device name */
int id; /* RFCOMM device id */
int ntries; /* Open attempts */
- int canceled; /* Operation canceled */
+ int canceled; /* Operation canceled */
};
/* FIXME: Common file required */
@@ -1646,7 +1646,7 @@ static DBusHandlerResult proxy_set_serial_params(DBusConnection *conn,
struct proxy *prx = data;
const char *ratestr, *paritystr;
uint8_t databits, stopbits;
- tcflag_t ctrl; /* Control mode flags */
+ tcflag_t ctrl; /* Control mode flags */
speed_t speed = B0; /* In/Out speed */
/* Don't allow change TTY settings if it is open */
@@ -1691,7 +1691,7 @@ static DBusMethodVTable proxy_methods[] = {
{ "Enable", proxy_enable, "", "" },
{ "Disable", proxy_disable, "", "" },
{ "GetInfo", proxy_get_info, "", "a{sv}" },
- { "SetSerialParameters", proxy_set_serial_params, "syys", "" },
+ { "SetSerialParameters", proxy_set_serial_params, "syys", "" },
{ NULL, NULL, NULL, NULL },
};
diff --git a/serial/port.c b/serial/port.c
index b12a2645..6d82c632 100644
--- a/serial/port.c
+++ b/serial/port.c
@@ -145,7 +145,7 @@ static DBusHandlerResult port_get_name(DBusConnection *conn,
DBusMessage *reply;
const char *pname;
char *name = NULL;
-
+
reply = dbus_message_new_method_return(msg);
if (!reply)
return DBUS_HANDLER_RESULT_NEED_MEMORY;
diff --git a/serial/serial-api.txt b/serial/serial-api.txt
index 96b5d684..7e17b86e 100644
--- a/serial/serial-api.txt
+++ b/serial/serial-api.txt
@@ -157,7 +157,7 @@ Methods: void Enable() [experimental]
void Disable() [experimental]
Unregister the service record and stop listenning.
-
+
Possible errors:org.bluez.Error.Failed
dict GetInfo() [experimental]