rules: eliminate an extra fopen/fclose cycle
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 13 Nov 2019 01:38:39 +0000 (11:38 +1000)
committerRan Benita <ran234@gmail.com>
Tue, 24 Dec 2019 07:50:03 +0000 (09:50 +0200)
commit00f31e0d274fb0231cdc7ff1e0ae2a390f2162be
tree33d65ed9f578bd16d6fd1e83a42519eb1b22fa3f
parentca033a29d2ca910fd17b1ae287cb420205bdddc8
rules: eliminate an extra fopen/fclose cycle

FindXkbFileInPath() opens the file so we're guaranteed that the file not only
exists, but that we can read it. Changing that would alter behavior so instead
let's just pass that file handle along and do the same for include files.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/xkbcomp/rules.c