mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3387ccc6f6
commit
a27f67c026
28 changed files with 387 additions and 323 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue