It isn't portable to use stderr (or std{in,out}) in file-scope
authorguenther <guenther@openbsd.org>
Wed, 5 Jul 2023 18:45:14 +0000 (18:45 +0000)
committerguenther <guenther@openbsd.org>
Wed, 5 Jul 2023 18:45:14 +0000 (18:45 +0000)
commitc0c90351672c5fc26a45cc4e1c51ee3b16e9c570
treef598773061072f076c10b8135d5b41e430de91a8
parentbc3c2f6195973bddd45dfa99715740ad80b376fd
It isn't portable to use stderr (or std{in,out}) in file-scope
initializers as they are not required to be compile-time constants.
So, intialize these global variables at the top of main().

ok miod@ deraadt@ yasuoka@ millert@
bin/pax/pax.c
usr.sbin/amd/amd/amd.c
usr.sbin/amd/amd/xutil.c