<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/core, branch v4.9.6</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.9.6</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.9.6'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2020-06-18T16:05:13Z</updated>
<entry>
<title>core: fix compile issue with older g++</title>
<updated>2020-06-18T16:05:13Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-06-18T00:02:46Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=ce1582581b881e67626fc6081def04533c9a9d37'/>
<id>urn:sha1:ce1582581b881e67626fc6081def04533c9a9d37</id>
<content type='text'>
Having the full list of all members in the exact order should be enough to get
g++ to accept the named initializers.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>core: fix libdivecomputer dc_custom callbacks structures</title>
<updated>2020-06-18T16:05:13Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2020-06-17T19:00:07Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=7f0ee3d8e2ae99ae21305c647cd501565846cf8f'/>
<id>urn:sha1:7f0ee3d8e2ae99ae21305c647cd501565846cf8f</id>
<content type='text'>
The last time those changed, we forgot to update serial_ftdi. In that change
set_latency had been removed from libdivecomputer and poll and ioctl had been
added. This caused the callbacks to no longer be aligned correctly and the
functions were called with the wrong arguments through the wrong function
pointers, leading to crashes.

Instead of the fragile assumptions about order and type of function pointers,
use named initializers. And while we are at it, fix that for the bluetooth
implementation as well.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>cleanup: remove indirection when passing arguments to parser functions</title>
<updated>2020-06-16T15:20:53Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-06-15T21:13:29Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=14c37ba7337da108f23dd8cba98c2a9d52bd4099'/>
<id>urn:sha1:14c37ba7337da108f23dd8cba98c2a9d52bd4099</id>
<content type='text'>
For unknown reasons, the dive site and trip to be parsed into were
passed as pointers to pointers. A simple pointer seems to be enough,
since the object is not allocated by the function.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>git-storage: add global flag to indicate successful cloud sync</title>
<updated>2020-06-14T20:35:33Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-06-13T20:41:09Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=8b478a969dbd10b3f07affd2f614886d27211c2a'/>
<id>urn:sha1:8b478a969dbd10b3f07affd2f614886d27211c2a</id>
<content type='text'>
This may seem like a bit heavy handed as it adds more global state, but given
the number of ways in which attempts to sync with the cloud can fail it seems
much more reliable to claim success in the spots where we actually know that we
have successfully synced with the remote server. Transporting that information
back through the various call chains turned out to be very disruptive and ugly,
so I went with global state instead.

Whenever we access cloud storage (or any git repo), we always first check if it
actually is a git repo by calling is_git_repository() - so this is the perfect
spot to initialize the variable to false.

And there are only two spots where we either clone the remote repo
(create_local_repo()) or update the remote with the (potentially merged) local
changes (check_remote_status()). So those are the two places where we set the
variable to true.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>git storage: significantly expand logging to stderr</title>
<updated>2020-06-14T20:35:33Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-06-13T17:46:09Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=fe9e33ccac5ec09e25dc0ea363b24a8b01ab2d88'/>
<id>urn:sha1:fe9e33ccac5ec09e25dc0ea363b24a8b01ab2d88</id>
<content type='text'>
In many cases we did not log the issues the code ran into to stderr which made
remote debugging user problems much harder. This hopefully will help with that.

Since I was looking at the code, I also made the existing messages more
consistent.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>download: don't warn on unknown gasmixes</title>
<updated>2020-06-13T22:55:35Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-06-13T08:36:38Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=23e88391824385bf26e80ae570e52cca32738164'/>
<id>urn:sha1:23e88391824385bf26e80ae570e52cca32738164</id>
<content type='text'>
Apparently libdivecomputer can return DC_GASMIX_UNKNOWN when
fetching tank info with
  dc_parser_get_field(parser, DC_FIELD_TANK, i, &amp;tank);
This caused emission of a warning, which was annoying users.
Disable the warning in that case.

Fixes #2866

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: make local functions of static linkage</title>
<updated>2020-05-29T16:20:17Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-05-29T06:45:38Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f29278b700db51f62670a61bfa7de8e4719be932'/>
<id>urn:sha1:f29278b700db51f62670a61bfa7de8e4719be932</id>
<content type='text'>
A few functions in save-html.c were local but not marked as static.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Print correct template name on CSV export</title>
<updated>2020-05-26T18:33:10Z</updated>
<author>
<name>Miika Turkia</name>
<email>miika.turkia@gmail.com</email>
</author>
<published>2020-05-23T16:28:13Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=3f54af2ca6c0d728b60d5ae757d761c03192bcac'/>
<id>urn:sha1:3f54af2ca6c0d728b60d5ae757d761c03192bcac</id>
<content type='text'>
Signed-off-by: Miika Turkia &lt;miika.turkia@gmail.com&gt;
</content>
</entry>
<entry>
<title>cleanup: constify time_during_dive_with_offset() function</title>
<updated>2020-05-22T21:40:49Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-05-22T20:14:24Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=87c91af82407857ca0b14bbef992bca2ce0cfafd'/>
<id>urn:sha1:87c91af82407857ca0b14bbef992bca2ce0cfafd</id>
<content type='text'>
There is no reason to pass a non-const dive pointer as first
argument.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: remove unused function get_dive_n_near()</title>
<updated>2020-05-22T21:40:49Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-05-22T20:11:49Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=9365061e2799439532f4de1084735a141924330f'/>
<id>urn:sha1:9365061e2799439532f4de1084735a141924330f</id>
<content type='text'>
The last caller was removed in 7eb422d98837b3cfb289a66fa0f3a8f78f222001.
Since this is the only caller of dive_within_time_range(), remove that
function as well.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
</feed>
