fortune(6): Turn writing to disk a runtime option.
authorzrj <rimvydas.jasinskas@gmail.com>
Thu, 1 Sep 2016 05:17:12 +0000 (08:17 +0300)
committerzrj <zrj@dragonflybsd.org>
Thu, 1 Sep 2016 15:36:10 +0000 (18:36 +0300)
commitbd5b2c7273a9e8af8b8bd4f6d292ad47af782211
treea6ead42606b65baa34f0c7accead0d53aa415ebb
parentcb75653e8749dc75c5e74fe374b70190361a46c2
fortune(6): Turn writing to disk a runtime option.

Add FORTUNE_SAVESTATE environment knob.
Using env variable avoids having non compilable code that might
get stale with future updates and/or changes in base system.

Fix -Werror=sign-compare case in this code.

Taken-from: FreeBSD
games/fortune/fortune/fortune.6
games/fortune/fortune/fortune.c