diff --git a/obexd/gwobex/obex-priv.h b/obexd/gwobex/obex-priv.h
index f4e3e5b..c7e4997 100644
--- a/obexd/gwobex/obex-priv.h
+++ b/obexd/gwobex/obex-priv.h
#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 02afa2e..ad0e20c 100644
--- a/obexd/gwobex/utils.c
+++ b/obexd/gwobex/utils.c
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;
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') {
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);
return -1;
}
- time = mktime (&tm);
+ time = mktime(&tm);
#if defined(HAVE_TM_GMTOFF)
tz_offset = tm.tm_gmtoff;