From 53415d7d6978839b55a5da1ff06ead731377695e Mon Sep 17 00:00:00 2001 From: Syam Sidhardhan Date: Mon, 27 Jun 2011 03:26:05 +0530 Subject: [PATCH] obexd: Fix white space related coding style issues for gwobex - Corrected the space between the arguments - Corrected no space after 'sizeof' --- obexd/gwobex/obex-priv.h | 2 +- obexd/gwobex/utils.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/obexd/gwobex/obex-priv.h b/obexd/gwobex/obex-priv.h index f4e3e5be5..c7e4997fe 100644 --- a/obexd/gwobex/obex-priv.h +++ b/obexd/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/obexd/gwobex/utils.c b/obexd/gwobex/utils.c index 02afa2e12..ad0e20cd4 100644 --- a/obexd/gwobex/utils.c +++ b/obexd/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') { @@ -145,7 +145,7 @@ time_t parse_iso8601(const gchar *str, int len) { else tstr = g_strdup(str); - nr = sscanf (tstr, "%04u%02u%02uT%02u%02u%02u%c", + nr = sscanf(tstr, "%04u%02u%02uT%02u%02u%02u%c", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec, &tz); @@ -162,7 +162,7 @@ time_t parse_iso8601(const gchar *str, int len) { return -1; } - time = mktime (&tm); + time = mktime(&tm); #if defined(HAVE_TM_GMTOFF) tz_offset = tm.tm_gmtoff; -- 2.47.3