mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
datatrak: some codings style fixes and fopen() usage
- subsurface_fopen() is needed
- translated one puts("") message
- sizeof(unsigned char | char) is always 1
- pointer symbol (*) location
- padding fixes
- braces fixes
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
76ce2b095b
commit
2a1a868db2
3 changed files with 99 additions and 106 deletions
2
file.c
2
file.c
|
|
@ -457,7 +457,7 @@ int parse_file(const char *filename)
|
|||
}
|
||||
|
||||
/* DataTrak/Wlog */
|
||||
if (fmt && (!strcasecmp(fmt + 1, "LOG"))) {
|
||||
if (fmt && !strcasecmp(fmt + 1, "LOG")) {
|
||||
datatrak_import(filename, &dive_table);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue