diff options
author | Philip Langdale <philipl@overt.org> | 2012-10-13 14:38:03 -0700 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2013-01-11 20:30:57 -0800 |
commit | f1dea7bef4e45f9fc6f77ec4d135d4b86433df6c (patch) | |
tree | 8fc80a22e09d4988312b2ad5e018ad5a92e5bdb5 /monitor | |
parent | c4405cb73e5767ce3eed77f4ba9c8b53dd146546 (diff) | |
download | gvfs-f1dea7bef4e45f9fc6f77ec4d135d4b86433df6c.tar.gz |
MTP: Fix parentheses spacing.
Diffstat (limited to 'monitor')
-rw-r--r-- | monitor/mtp/gmtpvolume.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/monitor/mtp/gmtpvolume.c b/monitor/mtp/gmtpvolume.c index cbec9568..c59bba10 100644 --- a/monitor/mtp/gmtpvolume.c +++ b/monitor/mtp/gmtpvolume.c @@ -33,7 +33,7 @@ #include "gmtpvolume.h" -G_LOCK_DEFINE_STATIC(mtp_volume); +G_LOCK_DEFINE_STATIC (mtp_volume); struct _GMtpVolume { GObject parent; @@ -91,7 +91,7 @@ g_mtp_volume_init (GMtpVolume *mtp_volume) { } -static int hexdigit(char c) +static int hexdigit (char c) { if (c >= 'a') return c - 'a' + 10; @@ -112,10 +112,10 @@ udev_decode_string (const char* encoded) if (encoded == NULL) return NULL; - for (len = 0, s = encoded; *s && len < sizeof(decoded)-1; ++len, ++s) { + for (len = 0, s = encoded; *s && len < sizeof (decoded) - 1; ++len, ++s) { /* need to check for NUL terminator in advance */ if (s[0] == '\\' && s[1] == 'x' && s[2] >= '0' && s[3] >= '0') { - decoded[len] = (hexdigit(s[2]) << 4) | hexdigit(s[3]); + decoded[len] = (hexdigit (s[2]) << 4) | hexdigit (s[3]); s += 3; } else { decoded[len] = *s; |