libz/savecore: Move the local zopen() from libz to savecore(8).
authorSascha Wildner <saw@online.de>
Wed, 16 Oct 2019 07:41:20 +0000 (09:41 +0200)
committerSascha Wildner <saw@online.de>
Wed, 16 Oct 2019 07:41:20 +0000 (09:41 +0200)
commit721b9eee9e0967564dfc6a04bd0218cf7bd3f852
tree29711b1e771ea9ac7d84d195af2673c341b87a60
parentfb9ceec52766c60dabef2640bf85ab13b12ef7cd
libz/savecore: Move the local zopen() from libz to savecore(8).

It is its only consumer.

Cleanup libz's Versions.def and Symbol.map too. Nothing in dports
should be using that function from the library (else it's a bug).

While here, add a __DECONST() to fix for WARNS=6.

Discussed-with: zrj
lib/libz/Makefile
lib/libz/Symbol.map
lib/libz/Versions.def
sbin/savecore/Makefile
sbin/savecore/zopen.c [moved from lib/libz/zopen.c with 92% similarity]