diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-01-16 11:50:56 +0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-16 11:50:56 +0700 |
commit | a27f67c02612791fad73b4e0550d942dc3a5a339 (patch) | |
tree | 4417a2be34c8bcd7c03db23ba5f307ad463657a9 /parse-xml.c | |
parent | 3387ccc6f676636fe3fb8b11c8c371f627d74551 (diff) | |
download | subsurface-a27f67c02612791fad73b4e0550d942dc3a5a339.tar.gz |
Whitespace and coding style updates
Another futile attempt to cleanup the code and make coding style and
whitespace consistent. I tried to add a file that describes the key points
of our coding style. I have no illusions that this will help the least
bit...
This commit should ONLY change whitespace
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/parse-xml.c b/parse-xml.c index 3845e424f..2423b2cfb 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -1628,10 +1628,10 @@ void parse_xml_buffer(const char *url, const char *buffer, int size, extern int dm4_events(void *handle, int columns, char **data, char **column) { event_start(); - if(data[1]) + if (data[1]) cur_event.time.seconds = atoi(data[1]); - if(data[2]) { + if (data[2]) { switch (atoi(data[2])) { case 1: /* 1 Mandatory Safety Stop */ @@ -1728,7 +1728,7 @@ extern int dm4_events(void *handle, int columns, char **data, char **column) extern int dm4_tags(void *handle, int columns, char **data, char **column) { - if(data[0]) + if (data[0]) taglist_add_tag(cur_dive->tag_list, data[0]); return 0; @@ -1874,7 +1874,7 @@ int parse_dm4_buffer(const char *url, const char *buffer, int size, retval = sqlite3_open(url, &handle); - if(retval) { + if (retval) { fprintf(stderr, translate("gettextFromC","Database connection failed '%s'.\n"), url); return 1; } |