]> git.ipfire.org Git - thirdparty/dracut.git/commit
install: avoid non-portable __WORDSIZE
authorAlexander Tsoy <alexander@tsoy.me>
Sat, 8 Sep 2018 23:47:09 +0000 (02:47 +0300)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 10 Sep 2018 07:45:22 +0000 (09:45 +0200)
commit838f22259a50e5f92429ecdd24b897c1128edc98
tree6a1206c1a7e10847af9e2105625fd33fc3ec45d1
parentb3480d31b01e66e21a70b7dab55eac95449126c7
install: avoid non-portable __WORDSIZE

Lets not unnecessarily rely on __WORDSIZE, which is not clearly specified
by any spec. Use explicit size comparisons if we're not interested in the
WORDSIZE, anyway.

Patch ported from systemd.
(commit 8507eb20b64010b26f23822cbf442bb0bf96511c)

Original-patch-by: Emil Renner Berthing <systemd@esmil.dk>
Bug: https://bugs.gentoo.org/602122
install/util.h