[PATCH obexd 2/3] Fix white space related coding style issues for gwobex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



- Corrected the space between the arguments
- Corrected no space after 'sizeof'
---
 gwobex/obex-priv.h |    2 +-
 gwobex/utils.c     |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gwobex/obex-priv.h b/gwobex/obex-priv.h
index f4e3e5b..c7e4997 100644
--- a/gwobex/obex-priv.h
+++ b/gwobex/obex-priv.h
@@ -37,7 +37,7 @@
 #include "gw-obex.h"
 #include "obex-xfer.h"
 
-#define CHECK_DISCONNECT(ret,err,ctx) do { \
+#define CHECK_DISCONNECT(ret, err, ctx) do { \
                                           if ((ctx)->conn_fd < 0) { \
                                               if (err) \
                                                   *(err) = GW_OBEX_ERROR_DISCONNECT; \
diff --git a/gwobex/utils.c b/gwobex/utils.c
index 02afa2e..f47b68a 100644
--- a/gwobex/utils.c
+++ b/gwobex/utils.c
@@ -50,7 +50,7 @@ char *bytestr(const uint8_t *uuid, int len) {
 gboolean fd_raw_mode(int fd) {
     struct termios mode;
 
-    memset(&mode, 0, sizeof (mode));
+    memset(&mode, 0, sizeof(mode));
     if (tcgetattr(fd, &mode) < 0) {
         debug("tcgetattr(%d, &mode): %s", fd, strerror(errno));
         return FALSE;
@@ -134,7 +134,7 @@ time_t parse_iso8601(const gchar *str, int len) {
     time_t    time;
     time_t    tz_offset = 0;
 
-    memset (&tm, 0, sizeof (struct tm));
+    memset (&tm, 0, sizeof(struct tm));
 
     /* According to spec the time doesn't have to be null terminated */
     if (str[len - 1] != '\0') {
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux